Yes, it is normal. That's because not every store sells items in whole unit increments. What if you had fabric, what would be the unit? With a float, you can have a unit be a yard, and sell smaller increments.
Similarly with a store that sells by the pound. No reason to force people to buy a whole pound. I'm not sure why you'd want to change the datatype. If you were insistently determined to do so, then it would be a fork. The displayed formatting is done with our "moneyfmt" and decimal rounding templatetags. On Mon, May 10, 2010 at 7:28 AM, craig <[email protected]> wrote: > I noticed some fields are stored as floats with six decimal places. > Both "Total sold" and "Number in stock" show up as a float with 6 > decimal places. > > Is this normal and is it possible to change the formatting of these > values without altering the db schema? > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<satchmo-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > -- Bruce Kroeze http://www.ecomsmith.com It's time to hammer your site into shape. -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
