method

truncate

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

Returns the float truncated to an Integer.

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