Ruby on Rails Friday, April 25, 2014

On 25 April 2014 19:29, <johnelahr@gmail.com> wrote:
> I don't know the exact set up but it's a float - the sum either needs to add
> up to 1 or 100 depending on how i set up the recipes. The only reason I'm
> doing this is I need a beginner project to work on and this is something i
> know - and the blog idea keeps bogging down.

Please remember to quote the previous message. No-one reading this
will know what you are talking about.

If it is a float you cannot test for the total exactly equal to one.
You can never rely on floats being exactly equal to anything, due to
rounding errors.

My advice is to finish working right through the tutorial before
working on your own project.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuRbZ0goX4V9Y0CXRE7Wj4VEZiVAeAEgtVB%2BMHqB6%2BJkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment