Mitsubishi MELFA CR1D Instruction Manual page 339

Table of Contents

Advertisement

Mki$
[Function]
Converts the value of an equation (integer) into a two-byte string.
[Format]
<Character String Variable >=Mki$(<Equation>)
[Reference Program]
1 C1$=Mki$(20299)
2 M1=Cvi(C1$)
[Explanation]
(1) Converts the lowest two bytes of the value of an equation (integer) into a strings.
(2) Use Cvi to convert the string to a value.
(3) This can be used to reduce the amount of communication data when transmitting numerical data to
external devices.
[Reference]
Asc, Cvi, Cvs, Cvd, Mks$,
Mks$
[Function]
Converts the value of an equation (single-precision real number) into a four-byte string.
[Format]
<Character String Variable >=Mks$(<Equation>)
[Reference Program]
1 C1$=Mks$(100.1)
2 M1=Cvs(C1$)
[Explanation]
(1) Converts the lowest four bytes of the value of an equation (single-precision real number) into the strings.
(2) Use Cvs to convert the string to a value.
(3) This can be used to reduce the amount of communication data when transmitting numerical data to
external devices.
[Reference]
Asc, Cvi, Cvs, Cvd, Mki$,
' "OK" is assigned to C1$.
' 20299 is assigned to M1.
Mkd$
'
' 100.1 is assigned to M1.
Mkd$
4MELFA-BASIC IV
Detailed Explanation of Functions 4-326

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents