method

to_int

to_int()
public

Returns the value as an Integer.

If the BigDecimal is infinity or NaN, raises FloatDomainError.