From: Aldric Giacomoni Date: 2009-10-29T03:48:31+09:00 Subject: Re: Ruby can't subtract ? Matthew K. Williams wrote: > On Thu, 29 Oct 2009, Aldric Giacomoni wrote: > >> I bash my head against the wall? :) > Pamphlet -> http://en.wikipedia.org/wiki/IEEE_754-2008 > > Popcorn, well, it's kinda hard to transmit over the wire. ;-) > > As a rule of thumb, if you really care about the decimals, either use > BigDecimal or integers (and keep track of where the decimal should be -- > this is common for $$$$). Unfortunately, this is not limited to ruby, > either -- C, Java, and a host of other languages all are subject. > > Matt Thanks. Both my head and the wall are safe for now. As one may have surmised, I don't deal with floating point values much, but this is frustrating. I do see that there are a couple of people who wrote gems on Rubyforge to handle this issue :) -- Posted via http://www.ruby-forum.com/.