From: Joel VanderWerf Date: 2009-03-10T12:35:19+09:00 Subject: [ruby-core:22796] Re: suggestions for float mathew wrote: > Fixed point decimal numbers, on the other hand--those actually exist So why not define a FixedPoint class, based on Integer, with all the operations and #coerce? It will be more efficient (and simpler) than decimal float, and Float can remain IEEE float, which is what most numerical libraries use anyway. Perhaps this suggestion would be more acceptable if there were a literal notation for fixed point? What about "_123.45" for 12345/100? Food for thought: http://gcc.gnu.org/wiki/FixedPointArithmetic -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407