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-February/020401.html below:

add basic money type to the standard library

[Python-Dev] proposal: add basic money type to the standard library [Python-Dev] proposal: add basic money type to the standard libraryM.-A. Lemburg mal@lemburg.com
Tue, 26 Feb 2002 22:32:31 +0100
Guido van Rossum wrote:
> 
> > A decimal would do as well, I suppose, at least in
> > terms of storing the raw value. The reason for trying
> > to come up with a monetary type is to make operations between
> > monetary values having two different currencies illegal.
> > Coercion between two of those would always have to be
> > made explicit (for obvious reasons).
> 
> Are you sure you're trying to solve a real problem here?  There are
> lots of operations on monetary values that make no sense (try
> multiplying two amounts of money).

Indeed, monetary types solve different problems than decimal 
types. Financial applications do have a need for these kind
of implicit error checks.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/



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