Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu From: cloos@acsu.buffalo.edu (James H. Cloos) Newsgroups: comp.sys.handhelds Subject: (HP48SX) How many digits is the display set to anyway? Message-ID: <68963@eerie.acsu.Buffalo.EDU> Date: 4 Apr 91 21:58:05 GMT Sender: news@acsu.Buffalo.EDU Organization: State University of New York @ Buffalo Lines: 22 Nntp-Posting-Host: lictor.acsu.buffalo.edu Here is RCLND, a program that RCL's the number of digits the current display mode is set to. %%HP: T(3)A(R)F(.); DIR RCLND \<< 0 -48 -45 FOR J 2 * J FS? + NEXT \>> END As written, it returns a value between 0 and 15. (If only STD, ENG, FIX, and SCI were used to set/clear flags -45 thru -48, then only values in the range of 0..11 will be returned.) You can add tests for -49 and -50 if you want to know whether it is STD, FIX, SCI or ENG. Hope someone finds it useful. -JimC -- James H. Cloos, Jr. Phone: +1 716 673-1250 cloos@ACSU.Buffalo.EDU Snail: PersonalZipCode: 14048-0772, USA cloos@ub.UUCP Quote: <>