At least one of the numbers needs to be a float. Here's an example of script/console output:
Loading development environment (Rails 2.1.1) >> 3/2 => 1 >> 3.0/2 => 1.5 >> 3/2.0 => 1.5 >> 3.0/2.0 => 1.5 In Ruby, division of integers returns only the integer part of the result. Craig --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

