In Files

Methods

Files

DBI::Type::Float

Represents a decimal number with floating-point precision. Falls back to Integer.

Public Class Methods

parse(obj) click to toggle source
# File lib/dbi/types.rb, line 85
def self.parse(obj)
    return nil if Null.parse(obj).nil?
    return obj.to_f if obj.respond_to? :to_f
    super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.