home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp48
- Path: sparky!uunet!telesoft!kst
- From: kst@telesoft.com (Keith Thompson @pulsar)
- Subject: MOD bug in revision A
- Message-ID: <1993Jan8.085647.9138@telesoft.com>
- Organization: Alsys Group, San Diego, CA, USA
- Date: Fri, 8 Jan 1993 08:56:47 GMT
- Lines: 29
-
- I've run across a minor bug involving the MOD operator in revision A of
- the HP48. It isn't in the official list of bugs from HP, nor do I
- recall seeing it mentioned anywhere else. It doesn't show up on my
- friend's revision B.
-
- The problem is that when a MOD expression whose right operand is a
- number with a leading decimal point is converted to a string, no space
- is inserted after the MOD. The right operand is then joined with the
- word "MOD", typically resulting in a syntax error.
-
- For example:
-
- You enter Display
- --------- -------
- 'X' .1 MOD 'X MOD.1' (should be 'X MOD .1')
- ->STR "'X MOD.1'"
- OBJ-> OBJ-> Error: Invalid Syntax
-
- If you go into the equation writer instead of entering the ->STR and
- OBJ-> commands, the expression becomes 'X*MOD.1', where MOD.1 is
- interpreted as an identifier.
-
- I ran across this when I tried to edit a program containing an
- expression of the form 'X MOD .1'; I have to manually insert a space
- every time I edit the program.
- --
- Keith Thompson (The_Other_Keith) kst@telesoft.com
- TeleSoft, 5959 Cornerstone Court West, San Diego, CA, 92121-9891
- "Listen to me, people! We must stick them with quills -- it's the only way!"
-