« Broken | Main | quant stuff »

04 November 2004

Decimal And Money

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.


Posted by ngps at 00:23 | Comments (1) | Trackbacks (0)
Comments
Re: Decimal And Money

ruby has also a BigDecimal module that implements aribtrary precision decimals, since 1.8.0 if I recall correct, just if you're interested in it :)

Posted by: gabriele renzi at November 04,2004 07:06
Trackbacks
Please send trackback to:http://sandbox.rulemaker.net/ngps/157/tbping
There is no trackback.