Method: Numeric#round
- Defined in:
- numeric.c
#round ⇒ Integer
Rounds num to the nearest integer. Numeric implements this by converting itself to a Float and invoking Float#round.
1382 1383 1384 |
# File 'numeric.c', line 1382 static VALUE num_round(num) VALUE num; |