#18

pgacv2's picture
Offline
Joined: 03/19/2010
Juice: 39
#18

I vote for this. I also read Lyle's post at http://www.ubercart.org/comment/10001/Re_Quantity_Decimal (link provided by cYu at the top of this thread) and I think his concern about rounding errors with floats, while technically valid, doesn't really apply to the kind of scenarios Ubercart will commonly be used in. Rounding errors are typically several decimal places to the right, and once you get past the hundredths place in a decimal number, it's pretty hard to tell the difference, either visually or with any widely available measuring instrument. If someone orders 1.5 yards of fabric, and they actually end up getting 1.489023481 or whatever, do you really think the customer will notice or even care? Of course there are times when even that small margin of error is unacceptable (maybe you want to enable customers to order exactly 400.43580021 grams of enriched uranium for... whatever reason), but if you're in that situation, you wouldn't be using Ubercart for your selling needs anyway.

Abiility to have decimal quantities By: Dan-902 (42 replies) Thu, 08/14/2008 - 15:43