method

to_i

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

Returns the float truncated to an Integer.

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