CVREAL†
Format†
CVREAL(var)
Function†
- If a variable that stores a string in real number format is specified as an argument, it will be converted to a real number and stored again.
- If a variable that contains any other string is specified, the type of the variable is set to a real number and "0.000000" is stored.
Arguments†
- var
- Variable to be converted.
Return value†
Related†
Version†
- YAYA: Available from the start
- Available in AYA5.8
Example†
_val = '3.1415' // Assign a string
CVREAL(_val)
GETTYPE(_val) // "2" is output (which is a real number)
_val // "3.141500" is output (as a real number)