internal number representation
10-07-2016, 01:05 AM
Post: #4
 David Hayden Senior Member Posts: 462 Joined: Dec 2013
RE: internal number representation
On the HP 48, the sign nibble is encoded with 0 meaning positive and 9 meaning negative.

The 3 nibble of the exponent are encoded in BCD, but if the value is negative, then it's encoded as 1000-ABS(exponent). Put another way, if value in the exponent nibbles is more than 499, then take the value, subtract it from 1000 , negate it and that's the value. For example, if the exponent nibbles contain 600, then actual exponent is -(1000-600) = -400.

See pages 104-105 here: http://www.hpcalc.org/details/1693
 « Next Oldest | Next Newest »

 Messages In This Thread internal number representation - retoa - 10-05-2016, 06:25 AM RE: internal number representation - Tim Wessman - 10-05-2016, 03:42 PM RE: internal number representation - retoa - 10-05-2016, 09:27 PM RE: internal number representation - David Hayden - 10-07-2016 01:05 AM RE: internal number representation - retoa - 10-07-2016, 07:30 AM RE: internal number representation - jte - 10-08-2016, 08:37 PM RE: internal number representation - cyrille de brĂ©bisson - 10-10-2016, 10:05 AM

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