Class: BigDecimal
- Inherits:
-
Object
- Object
- BigDecimal
- Defined in:
- lib/arrow/bigdecimal-extension.rb
Instance Method Summary collapse
Instance Method Details
#to_arrow ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/arrow/bigdecimal-extension.rb', line 21 def to_arrow if precision <= Arrow::Decimal128DataType::MAX_PRECISION Arrow::Decimal128.new(to_s) else Arrow::Decimal256.new(to_s) end end |