January 09, 2003
Decimal Arithmetic

IBM's Decimal Arithmetic FAQ is an interesting read.

Coming from an AS/400 background, I'm used to having decimal arithmetic around (albeit somewhat limited in terms of functionality). It is mainly used to store monetary values. Using floating point to store monetary values sucks.

Python doesn't come with a fixed decimal type, but the FixedPoint class will probably make it into the standard library at some point.

Posted to Software development by Simon Brunning at January 09, 2003 01:58 PM
Post a comment

Email Address:



Remember info?