Float
From RubySpec
From Programming Ruby, First edition: "Float objects represent real numbers using the native architecture's double-precision floating point representation." Here is some sample code using float objects, using irb for ruby 1.8.5 on a 64-bit machine
irb(main):009:0> 1.4353535.class => Float irb(main):010:0> 1.4353535.to_f => 1.4353535 irb(main):011:0> 1.4353535.to_s => "1.4353535" irb(main):012:0> 1.4353535.to_a (irb):12: warning: default `to_a' will be obsolete => [1.4353535] irb(main):013:0> 1.4353535.to_i => 1 irb(main):014:0> 1.4353535.nan? # IEEE nan => false irb(main):015:0> 1.4353535.floor => 1 irb(main):016:0> 1.4353535.round => 1
irb(main):025:0> 1000000e-10000 (irb):25: warning: Float 1000000e-10000 out of range => 0.0
[edit]
Float::CONSTANT
------------------------------------------------------------------------
Float::CONSTANT
------------------------------------------------------------------------
Float::DIG = 15
Float::EPSILON = 2.22044604925031e-16
Float::MANT_DIG = 53
Float::MIN_10_EXP = -307
Float::MAX_10_EXP = 308
Float::MAX_EXP = 1024
Float::MIN = 2.2250738585072e-308
Float::MAX = 1.79769313486232e+308
Float::MIN_EXP = -1021
Float::RADIX = 2

