r.round(number) → number
number.round() → number
Rounds the given value to the nearest whole integer.
Example: Round 12.345 to the nearest integer.
> r.round(12.345).run(conn) 12.0
round command can also be chained after an expression.
Example: Round -12.345 to the nearest integer.
> r.expr(-12.345).round().run(conn) -12.0
Example: Return Iron Man’s weight, rounded to the nearest integer.
Couldn't find what you were looking for?