Float functions
abs
Returns the absolute (non-negative) value of the floating point.
to_string
Converts the floating point to a string. to_s
is an alias for to_string
.
to_integer
Converts the floating point to an integer, rounding it. to_i
is an alias for to_integer
.
round
Rounds the floating point to the nearest whole value.
ceil
Rounds the float to the upper whole value.
floor
Rounds the float to the lower whole value.