A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/031182.html below:

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

[Python-Dev] Adding decimal (aka FixedPoint) numbers to PythonOren 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4