From: "Bilyk, Alex" Date: 2008-10-28T05:29:59+09:00 Subject: Re: float equality Mathematically 1.(0) is the same thing as 0.(9). Computers simply represent this to whatever precision they can. -----Original Message----- From: Tim Pease [mailto:tim.pease@gmail.com] Sent: Monday, October 27, 2008 1:11 PM To: ruby-talk ML Subject: Re: float equality On Mon, Oct 27, 2008 at 11:09 AM, Todd Benson wrote: > > Totally off-topic, but has any one figured out exactly why 1/9 > (0.111...) plus 8/9 (0.888...) is 1 instead of 0.999... :-) > I figured it out once, but I can't remember precisely how it worked. TwP