method

to_int

v2_2_9 - Show latest stable - Class: Float
to_int()
public

Returns the float truncated to an Integer.

Synonyms are #to_i, #to_int, and #truncate.