Hello people

I'm developing a rails 3.0.9 app and I'm doing some calculations for
prices.

I need to do the following:

if I get (i.e.) 10.0 to 10.4 I need to store 10
if I get (i.e.) 10.5 to 10.9 I need to store 11

Is there a rails way to do this?, thanks for your help

-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to