[google-appengine] Re: Support for Decimal in Datastore?

2009-02-11 Thread eric.humphrey
Created issue in Google's tracker for this. Please star and promote. http://code.google.com/p/googleappengine/issues/detail?id=1063 On Jan 11, 11:35 am, eric.humphrey eric.humph...@gmail.com wrote: If you're adding a bunch of these up, it would be unneeded overhead. Those building apps that

[google-appengine] Re: Support for Decimal in Datastore?

2009-01-11 Thread eric.humphrey
If you're adding a bunch of these up, it would be unneeded overhead. Those building apps that handle financial data or other numerics that require precision need the decimal data type. On Dec 5 2008, 7:25 am, Justin justin.drisc...@gmail.com wrote: Why not store the value as a string in the

[google-appengine] Re: Support for Decimal in Datastore?

2008-12-05 Thread Fred Janon
Float and Decimal are two different types. Float is used in scientific calculations, Decimal for accounting/financial applications. Decimal exists in Python but doesn't seem to be implemented in the Datastore. Fred On Fri, Dec 5, 2008 at 14:58, lock [EMAIL PROTECTED] wrote: There is the

[google-appengine] Re: Support for Decimal in Datastore?

2008-12-05 Thread Justin
Why not store the value as a string in the datastore and convert it to a decimal in Python on retrieval? You could use a property on your model to do it for you. import decimal class MyModel(db.Model): string_amount = db.StringProperty(multiline=False) def get_amount(self):

[google-appengine] Re: Support for Decimal in Datastore?

2008-12-04 Thread David Symonds
On Fri, Dec 5, 2008 at 1:07 PM, Fred Janon [EMAIL PROTECTED] wrote: The Datastore doesn't seem to have support for Decimal or did I miss something? Is there a way (besides the classic /100 *100) to get a Decimal stored in the Datastore or do I need to follow the Extending Model Properties