[Python-Dev] Adding decimal (aka FixedPoint) numbers to Python

Oren Tirosh oren-py-d@hishome.net
Sun, 15 Dec 2002 11:38:14 -0500


On Sun, Dec 15, 2002 at 11:02:30AM -0500, Michael McLay wrote:
> msql.execute ("INSERT INTO bankAccount
>    VALUES ('%s','%s','%s','%s', (,'Pay Rent'
>    ,1256,1345.23d ,'1999-03-30',NULL)")

I hope no financial software handling my money actually writes such
literals into the code. The above statement should not appear anywhere 
outside a tutorial.

A decimal literal might be handy when using the interactive Python prompt 
as a financial calculator, though. Is that enough justification for 
including it into the language? 

	Oren