--0015173fe4565be94404b70ddc80 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jan 21, 2012 at 9:08 AM, Yossef Mendelssohn <ymendel / pobox.com>wrote: > This problem comes up from time to time, sometimes from people I'd expect > to know better than to ask. And the answer is always the same: that's how > floats work. And there's usually the same suggestion of using BigDecimal > (or something similar). > > Since this time I'm waiting for someone and rather bored, I thought I'd see > how this goes. What's the real benefit of using floats? Why doesn't Ruby > actually use BigDecimal for things like this? If I were designing a language today 1.1 would be a decimal type ala BigDecimal and I'd have some other syntax like 1.1f for floats. -- Tony Arcieri --0015173fe4565be94404b70ddc80--