round()
Table of Contents
| This command is experimental |
Examples
The following example rounds 2.5 to the nearest whole integer, since the precision isn’t defined. The query returns 3 as the result.
| makeresults
| eval test = round(2.5)
The following example rounds 1.4932 to two decimal places and returns 1.49.
| makeresults
| eval test = round(1.4932, 2)
|
Currently, if the last decimal turns into 0 while the value is rounded, |