On Mar 26, 2011, at 10:15 PM, BareFeetWare wrote:

> On 27/03/2011, at 12:39 PM, Patrick Earl wrote:
> 
>> Base-10 numbers are frequently used in financial calculations because
>> of their exact nature.  SQLite forces us to store decimal numbers as
>> text to ensure precision is not lost.  Unfortunately, this prevents
>> even simple operations such as retrieving all rows where an employee's
>> salary is greater than '100' (coded as a string since decimal types
>> are stored as strings).
> 
> Can you store all money amounts as integers, as the cents value? That is 
> exact, searchable etc.
> 

No US National debt is over that :-(

Tom


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to