[comp.sys.handhelds] HP48 Bug in ->Q?

rhelps@yoda.byu.edu (03/28/90)

Try this (PI is pi function on SPC key)

  6 FIX PI ->NUM ->Q     gives  '355/113'   as expected
but
  7 FIX PI ->NUM ->Q     gives  '103993.000000/33102.0000000'

Where did the trailing zeroes come from?  FIX 8, 9, 10, 11, 12 also give
trailing zeroes.  A random check oof other arguments did not give trailing
zeroes.  Is this a bug or did I miss something in the fine print?

I hope this message comes through ungarbled.  I am having trouble with this
editor.

- Richard Helps -
Brigham Young University     All the usual disclaimers

billw@hpcvra.CV.HP.COM (William C Wickes) (03/30/90)

In the HP48SX display of algebraic objects, integers <1000 (absolute
value) are displayed as if in STD mode--no decimal point or trailing
zeros.  Other floating point numbers in an algebraic are displayed in
the current display mode.  

In the HP 28, all integers in algebraic objects were displayed in STD
mode--but anything >= 1E12 is an "integer," so you would lose display
control over such numbers and couldn't limit the number of displayed
decimal places.  So in the 48 we decided to cut off the auto STD at
an arbitrary value, finally fixing on 1000.  The primary reason for
this display handling is so that coefficients and exponents in polynomials
would look "nice," and we figured that 3 digits would cover most
of such numbers.