method

to_i

to_i()
public

Returns the value as an Integer.

If the BigDecimal is infinity or NaN, raises FloatDomainError.