The Artima Developer Community
Sponsored Link

Python Buzz Forum
Decimal And Money

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ng Pheng Siong

Posts: 410
Nickname: ngps
Registered: Apr, 2004

Ng Pheng Siong is just another guy with a website.
Decimal And Money Posted: Nov 3, 2004 8:38 PM
Reply to this message Reply

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.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ng Pheng Siong
Latest Posts From (render-blog Ng Pheng Siong)

Advertisement

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.

Read: Decimal And Money

Topic: Inburgeringsexamen Previous Topic   Next Topic Topic: SQLite Threading

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use