Mitsubishi Electric CR750-Q Instruction Manual page 454

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
Val
[Function]
Converts the value in the string into a numerical value.
[Format]
<Numeric Variable>=Val(<Character String Expression>)
[Reference Program]
1 M1=Val("15")
2 M2=Val("&B1111")
3 M3=Val("&HF")
[Explanation]
(1) Converts the given character string expression string into a numerical value.
(2) Binary (&B), decimal, and hexadecimal (&H) notations can be used for the string.
(3) In the example above, M1, M2 and M3 evaluate to the same value (15).
[Reference]
Bin$, Hex$,
Str$
4-434 Detailed Explanation of Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents