method

truncate

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

Returns num truncated to an Integer.

Numeric implements this by converting its value to a Float and invoking Float#truncate.