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