Class: DBF::ColumnType::Currency
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from DBF::ColumnType::Base
Instance Method Details
#type_cast(value) ⇒ Object
32 33 34 |
# File 'lib/dbf/column_type.rb', line 32 def type_cast(value) (value.unpack1('q<') / 10_000.0).to_f end |