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.
“There is much pleasure in useless knowledge.” — Bertrand Russell
April 27, 2008 | Computer Science | By: Mark VandeWettering
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.

Posts on this day from years past:
© 2013 brainwagon | Entries (RSS) | Comments (RSS) | Log in
Powered by WordPress | Theme design by Andreas Viklund
Comment from Jim Atkinson
Time 5/20/2008 at 3:10 pm
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.