This post originated from an RSS feed registered with Python Buzz
by Ng Pheng Siong.
Original Post: Decimal And Money
Feed Title: (render-blog Ng Pheng Siong)
Feed URL: http://sandbox.rulemaker.net/ngps/rdf10_xml
Feed Description: Just another this here thing blog.
I wrote that "Smalltalk appears to be strong in the realm of MIS that has
to do with risk and money."
I've always been interested in money. ;-) A few years ago, I implemented BigDecimal and Money objects in Python to support programming some financial modelling stuff I was reading up on. I've since lost my copy of the code, but of course I'm not the only person to have thought of doing this: Python 2.4 comes with an implementation for a Decimal
type over which a Money type may be built.
Most (all?) Smalltalk implementations support arbitrary precision decimal arithmetic "out of the box":
e.g., this is implemented in the ScaledDecimal
class in GNU Smalltalk and the FixedPoint
class in Smalltalk/X.
On a whim I googled "ruby money class" and Google News turned up a
comp.lang.ruby discussion from just a few days ago. No code, but that is sure to come.