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