method

to_int

v1_9_3_392 - Show latest stable - Class: BigDecimal
to_int()
public

Returns the value as an integer (Fixnum or Bignum).

If the BigNumber is infinity or NaN, raises FloatDomainError.