Mitsubishi MELFA CR1D Instruction Manual page 328

Table of Contents

Advertisement

4MELFA-BASIC IV
Cvi
[Function]
Converts the character codes of the first two characters of a string into an integer.
[Format]
<Numeric Variable>=Cvi(<Character String Expression>)
[Reference Program]
1 M1=Cvi("10ABC")
[Explanation]
(1) Converts the character codes of the first two characters of a string into an integer.
(2) An error will be generated if the string consists of one character or less.
(3) Mki$ can be used to convert numerical values into a string.
(4) This can be used to reduce the amount of communication data when transmitting numerical data with
external devices.
[Reference]
Asc, Cvs, Cvd, Mki$, Mks$,
Cvs
[Function]
Converts the character codes of the first four characters of a string into a single precision real number.
[Format]
<Numeric Variable>=Cvs(<Character String Expression>)
[Reference Program]
1 M1=Cvs("FFFF")
[Explanation]
(1) Converts the character codes of the first four characters of a string into an single-precision real number.
(2) An error will be generated if the string consists of three character or less.
(3) Mks$ can be used to convert numerical values into a string.
[Reference]
Asc, Cvi, Cvd, Mki$, Mks$,
4-315 Detailed Explanation of Functions
' &H3031 is assigned to M1.
Mkd$
' 12689.6 is assigned to M1.
Mkd$

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents