The value derived from the function is a real value.
This table shows the commands and the related syntax used for the Real
data type:
Command |
Syntax |
Examples |
NUM
The NUM command converts a boolean or a string into an integer or real value. Therefore, the command can be used here if the value read in converts into an integer. |
NUM(<value>)
|
NUM(True)=1
NUM(False)=0
NUM(<Logical expression>)=1/0
NUM("~") =numeric value of the value read in interpreted as a string
NUM("a123bfg")=123
|
Operators
These operators can be used to manipulate integer values:
- +
- -
- *
- / (real division)
- MOD(<value>) (modulo for real)
- LOG(<value>) (inverse of EXP)
- EXP(<value>)
- COS(<value>) (value in radians)
- SIN(<value>) (value in radians)
- TAN(<value>) (value in radians)
- ARCTAN(<value>) (value in radians)
|
|
|
Constants
- Pi -- returns the Pi number (3.14159...)
- Degree -- returns one degree expressed in radians (0.01745...)
- Radian -- returns one radian expressed in degrees (57.29577...)
|
|
|