Class: DBI::DBD::MSSQL::Type::Decimal

Inherits:
Type::Float show all
Defined in:
lib/dbd/mssql/types.rb

Overview

Represents a Decimal with real precision (BigDecimal). Falls back to Float.

Class Method Summary collapse

Class Method Details

.parse(obj) ⇒ Object



8
9
10
# File 'lib/dbd/mssql/types.rb', line 8

def self.parse(obj)
    BigDecimal.new(obj.to_s) rescue super
end