Please, never a float. Use Decimal Type.
http://www.python.org/peps/pep-0327.html
if it had a currency associated with it then you could do all sorts of
cool currency conversions/more finance oriented apps. Of course you
could always just use a float and have a seperate currency field.
> That's fine -- that's what we've always done. I'm not sure what the
> point of a DollarFi
On 9/16/05, Matthew Marshall <[EMAIL PROTECTED]> wrote:
> > What are you all using to store currency data?
> >
> > Any tips on how best to write my own meta.DollarField class?
>
> I went with the first solution that came to mind:
> meta.FloatField(decimal_places=2)
> [...]
> Is there any reason n
On Saturday 17 September 2005 01:00 am, Eric Walstad wrote:
> Hi,
>
> I didn't find any reference to money or currency data types in the
> django source, nor in the list archives. My app needs to store US
> Dollars.
>
> What are you all using to store currency data?
>
> Any tips on how best to wr
Hi,
I didn't find any reference to money or currency data types in the
django source, nor in the list archives. My app needs to store US
Dollars.
What are you all using to store currency data?
Any tips on how best to write my own meta.DollarField class?
Thanks in advance,
Eric.
5 matches
Mail list logo