General Decimal Arithmetic

While trying to find out if Python included some built-in capabilities for dealing with BCD numbers (it appears not) I encountered this rather interesting page about decimal arithmetic.

General Decimal Arithmetic

Share and Enjoy:
  • email
  • del.icio.us
  • Digg
  • Facebook
  • StumbleUpon
  • Twitter

One Response to “General Decimal Arithmetic”

  1. Jim Atkinson Says:

    Not exactly direct support but close. You can use hex() or write a method to convert the BCD to a string of digits then to a Decimal object. See the decimal module.

Leave a Reply