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.
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.
This entry was posted on Sunday, April 27th, 2008 at 12:51 pm and is filed under Computer Science. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

marks_mass and comment and/or encourage. Posts on this day from years past:
brainwagon is powered by WordPress with White as Milk
designed by Azeem Azeez. Entries (RSS) and Comments (RSS).
May 20th, 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.