module Mongoid::Extensions::BigDecimal

def __to_inc__

Returns:
  • (Float) - The big decimal as a float.

Other tags:
    Example: Convert the big decimal. -
def __to_inc__
  to_f
end

def mongoize

Returns:
  • (String | BSON::Decimal128 | nil) - The object or nil.

Other tags:
    Example: Mongoize the object. -
def mongoize
  ::BigDecimal.mongoize(self)
end

def numeric?

Returns:
  • (true) - Always true.

Other tags:
    Example: Is the object a number?. -
def numeric?
  true
end