Active
Project:
UC Variable Price
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 23:00 UTC
Updated:
12 Dec 2010 at 22:24 UTC
Not sure if this is a support request or a bug report... When a user enters a price with more than two decimal places, like $25.455, that price is stored in the database. While most Ubercart modules are well-behaved and use uc theme functions to show this as $25.46, there could be places where addition and subtracting the partial penny leads to precision problems. Is there any way to store this as $25.46 in the database so we don't have to worry about precision? Perhaps the validation function needs to round the values?
Thanks!