On 1 Oct 2008, at 11:33, Gu stav wrote:

>
>> I doubt that would help - that's happening anyway when rails  
>> generates
>> the query. == Is fundamentally dangerous with floats, almost all the
>> time you want to be searching in a range.
>
> Thanks. What would be the correct measure for me to take?

instead of x == y, you typically want x => y - delta && x <= y + delta  
for some suitable value of delta

Fred
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to