EasyManua.ls Logo

Mitsubishi MELFA CR1D - Page 339

Mitsubishi MELFA CR1D
458 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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]
Asc, Cvi, Cvs, Cvd, Mks$, Mkd$
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]
Asc, Cvi, Cvs, Cvd, Mki$, Mkd$
<Character String Variable >=Mki$(<Equation>)
<Character String Variable >=Mks$(<Equation>)

Table of Contents

Related product manuals