home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp48 / 4300 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.1 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!anderson
  2. From: anderson@Apple.COM (Clark Anderson)
  3. Newsgroups: comp.sys.hp48
  4. Subject: base conversion?
  5. Message-ID: <71354@apple.Apple.COM>
  6. Date: 18 Aug 92 22:14:56 GMT
  7. Organization: Apple Computer Inc., Cupertino, CA
  8. Lines: 24
  9.  
  10. Something appears to be odd about the base
  11. conversion function with the 48...
  12.  
  13. If I enter 1 as a binary number, then negate
  14. it, I get 1111 1111 1111 1111. OK, fine.
  15. This is -1 in 2's complement.
  16.  
  17. However, if I'm in decimal, enter a 1 and
  18. negate it, I get 65535. This isn't -1 in
  19. base 10 - in fact, it isn't even negative.
  20. A negative number would start with a '9'.
  21. The answer should be 99999.
  22.  
  23. Is this a bug, or am I doing something wrong?
  24.  
  25.                             --clark
  26.  
  27. ----------------------------------------------------------
  28. Clark Anderson                 BellNet: 408-974-4593
  29. Apple Computer, Inc.         AppleLink: C.ANDERSON
  30.                               InterNet: anderson@apple.com
  31. "I speak only for myself..."
  32. ----------------------------------------------------------  
  33.  
  34.