Module: Types::Decimal
- Extended by:
- Generic
- Defined in:
- lib/types/decimal.rb
Class Method Summary collapse
Methods included from Generic
composite?, to_s, |
Class Method Details
.parse(input) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/types/decimal.rb', line 31 def self.parse(input) case input when ::Float BigDecimal(input, ::Float::DIG+1) else BigDecimal(input) end end |