From: Michael Ulm Date: 2007-09-05T15:33:12+09:00 Subject: Re: 0.06 == 0.06 returns false in Ruby? Pe�a wrote: > From: Michael Ulm [mailto:michael.ulm@isis-papyrus.com] > # However (among other problems): > # > x = (1.0/3.0).to_dec > > foul.. ^^^^^^^^^ is a float op and not a bigdecimal/to_dec. use atomic operations comparison, pls :) > --snip-- What about > x = 1.0.to_dec / 3.0.to_dec > y = x + x + x > y == 1.0.to_dec # => false ? HTH, Michael -- Michael Ulm R&D Team ISIS Information Systems Austria tel: +43 2236 27551-542, fax: +43 2236 21081 e-mail: michael.ulm@isis-papyrus.com Visit our Website: www.isis-papyrus.com --------------------------------------------------------------- This e-mail is only intended for the recipient and not legally binding. Unauthorised use, publication, reproduction or disclosure of the content of this e-mail is not permitted. This email has been checked for known viruses, but ISIS accepts no responsibility for malicious or inappropriate content. ---------------------------------------------------------------