Ok so I have an entry in the database that sets the discount of a product, and I have it as a decimal. Here is what I used when I created the table: t.column :discount, :decimal, :precision => 3, :scale => 2, :default => 0 However, when I create a new product and add the discount to like 10.0% it always comes out as 9.99. Does anyone know why it is doing this? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---