If you want to clean it up say on the templates or whatever, (say for
showing info back to the customer) -- you can always pass it to the
django template formatting tags I believe its called floatformat.
(e.g. {{ value|floatformat 2} or something very close to that)



On Mon, May 10, 2010 at 10:11 AM, Bruce Kroeze <[email protected]> wrote:
> 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].
>> 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.
>



-- 
http://www.sudovi.com/
http://www.twitter.com/lifewithryan
http://www.thecommontongue.com
http://www.lifewithryan.com/

-- 
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.

Reply via email to