real/2 or float/2—convert a numeric value to a real value
The real/2 or float/2 primitive converts a numeric value to a real value.
$REALVAL=real($NUMBER)
$REALVAL=float($NUMBER)
$REALVAL=float($NUMBER)
real/2 or float/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$NUMBER | Input | INTEGER|REAL | Specifies the numeric (integer or real) value to be converted to a real (floating point) value |
$REALVAL | Output | REAL | The conversion result, returned as a real (floating point) value |
Use real/2 or float/2 to convert a numeric value to a real (floating point) value returned in $REALVAL.
real/2 or float/2 example
$DEV = ( $AVERAGE_DURATION - real($E.duration) ) ^ 2;
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*