First of all, you have to be running python 2.4 or higher.
Second or all, you need to be sure that the decimal package is actually required. The builtin math operators ( see pow() and ** ) would probably be sufficient for five nines of situations.
If you really want to use the General Decimal Arithmetic Specification, which the decimal module is an implementation of, then I'd start with the tutorial in the manual. If you can't figure out what you're doing after reading that, check back.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.