home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!anderson
- From: anderson@Apple.COM (Clark Anderson)
- Newsgroups: comp.sys.hp48
- Subject: base conversion?
- Message-ID: <71354@apple.Apple.COM>
- Date: 18 Aug 92 22:14:56 GMT
- Organization: Apple Computer Inc., Cupertino, CA
- Lines: 24
-
- Something appears to be odd about the base
- conversion function with the 48...
-
- If I enter 1 as a binary number, then negate
- it, I get 1111 1111 1111 1111. OK, fine.
- This is -1 in 2's complement.
-
- However, if I'm in decimal, enter a 1 and
- negate it, I get 65535. This isn't -1 in
- base 10 - in fact, it isn't even negative.
- A negative number would start with a '9'.
- The answer should be 99999.
-
- Is this a bug, or am I doing something wrong?
-
- --clark
-
- ----------------------------------------------------------
- Clark Anderson BellNet: 408-974-4593
- Apple Computer, Inc. AppleLink: C.ANDERSON
- InterNet: anderson@apple.com
- "I speak only for myself..."
- ----------------------------------------------------------
-
-