method

truncate

v2_4_6 - Show latest stable - Class: Numeric
truncate(*args)
public

Returns num truncated to an Integer.

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