fix

fix() Instance Public methods Return the integer part of the number.

floor

floor(n) Instance Public methods Return the largest integer less than or equal to the value, as a BigDecimal. BigDecimal('3.14159').floor #=> 3 BigDecimal('-9.1').floor #=> -10 If n is specified and positive, the fractional part of the result has no more than that many digits. If n is specified and negative, at least that many digits to the left of the decimal point will be 0 in the result. BigDecimal('3.14159').floor(3) #=> 3.141 BigDecimal('13345.234').floor(-2) #=>

frac

frac() Instance Public methods Return the fractional part of the number.

hash

hash Instance Public methods Creates a hash for this BigDecimal. Two BigDecimals with equal sign, fractional part and exponent have the same hash.

infinite?

infinite?() Instance Public methods Returns nil, -1, or +1 depending on whether the value is finite, -infinity, or +infinity.

inspect

inspect() Instance Public methods Returns debugging information about the value as a string of comma-separated values in angle brackets with a leading #: ::new(â1234.5678â).inspect -> â#<BigDecimal:b7ea1130,'0.12345678E4',8(12)>â The first part is the address, the second is the value as a string, and the final part ss(mm) is the current number of significant digits and the maximum number of significant digits, respectively.

modulo

a.modulo(b) Instance Public methods Returns the modulus from dividing by b. See #divmod.

mult

mult(value, digits) Instance Public methods Multiply by the specified value. e.g. c = a.mult(b,n) c = a * b digits If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to ::mode.

nan?

nan?() Instance Public methods Returns True if the value is Not a Number

nonzero?

nonzero?() Instance Public methods Returns self if the value is non-zero, nil otherwise.