Class: ODPI::BindType::Number

Inherits:
Object
  • Object
show all
Defined in:
lib/odpi/bindtype.rb

Class Method Summary collapse

Class Method Details

.to_bindclass(params) ⇒ Object


270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/odpi/bindtype.rb', line 270

def self.to_bindclass(params)
  if params.scale == 0
    prec = params.precision
    if prec == 0
      Float
    elsif prec < 19
      Int64
    else
      Integer
    end
  else
    Float
  end
end