round — round a number
round(val: number) -> number
The round function returns the number val rounded to the nearest integer value.
which must be a numeric type. The return type retains the type of the argument.
echo '3.14 -1.5 0 1' | zq -z 'yield round(this)' -
=>
3.
-2.
0
1