From: Matthew Moss Date: 2006-03-31T09:07:01+09:00 Subject: Re: Very interesting Float comparison! > ("44.59".to_f / 100) == 0.4449 # returns true !! > ("44.59".to_f / 100) == 0.4449 # returns false !!!! Typos? You typed the same exact line twice and it comes back with two different answers? In any case, exact equality comparisons of floating-point numbers is bad. Don't do it. Either compare with a small threshold, or deal with rationals.