Post Reply 
BCD calculators
08-25-2021, 05:03 AM
Post: #10
RE: BCD calculators
The conversion between DPD and BCD isn't trivial. It's actually surprisingly subtle: DPD requires a 1k entry lookup table to convert to BCD and back.

This was something I raised with the author of the decNumber library (Mike Cowlishaw) many years ago. The response was along the lines of "sure, leave out that table but you won't be binary compatible". For the 34S, binary compatibility wasn't important so we left it out and saved many precious bytes of flash.


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
BCD calculators - neyuru - 11-04-2020, 12:41 AM
RE: BCD calculators - Claudio L. - 11-04-2020, 04:01 PM
RE: BCD calculators - Wes Loewer - 11-04-2020, 04:22 PM
RE: BCD calculators - firai - 11-05-2020, 03:34 PM
RE: BCD calculators - Claudio L. - 11-18-2020, 09:08 PM
RE: BCD calculators - jte - 08-19-2021, 12:04 AM
RE: BCD calculators - jte - 08-19-2021, 12:36 AM
RE: BCD calculators - Paul Dale - 08-19-2021, 02:05 AM
RE: BCD calculators - jte - 08-25-2021, 12:26 AM
RE: BCD calculators - Paul Dale - 08-25-2021 05:03 AM



User(s) browsing this thread: 1 Guest(s)