4MELFA-BASIC IV
Detailed Explanation of Functions
4-326
Mki$
[Function]
Converts the value of an equation (integer) into a two-byte string.
[Format]
[Reference Program]
1 C1$=Mki$(20299)
' "OK" is assigned to C1$.
2 M1=Cvi(C1$)
' 20299 is assigned to M1.
[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]
,
,
,
,
,
Mks$
[Function]
Converts the value of an equation (single-precision real number) into a four-byte string.
[Format]
[Reference Program]
1 C1$=Mks$(100.1)
'
2 M1=Cvs(C1$)
' 100.1 is assigned to M1.
[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]
,
,
,
,
,
<Character String Variable >=Mki$(<Equation>)
<Character String Variable >=Mks$(<Equation>)