Re: Money or Currency data type

2005-09-18 Thread rapto
Please, never a float. Use Decimal Type. http://www.python.org/peps/pep-0327.html

Re: Money or Currency data type

2005-09-17 Thread Milton Waddams
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

Re: Money or Currency data type

2005-09-16 Thread Adrian Holovaty
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

Re: Money or Currency data type

2005-09-16 Thread Matthew Marshall
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

Money or Currency data type

2005-09-16 Thread Eric Walstad
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.