[comp.lang.apl] J bug?

sam@kalessin.jpl.nasa.gov (Sam Sirlin) (06/22/91)

In using J 2.9 on a sun4, I noticed what looks like a bug to me:

   _20.1 ": 1e_10
********************

   _20.1 ":1e10
  1.0e10

   _20.1 ": 1e_3
  1.0e_3

The field width looks too narrow for the negative two digit exponential, but
20 characters is certainly enough overall. Three digit exponentials also
cause problems for format (limit errors for positive exponents).

-- 
Sam Sirlin
Jet Propulsion Laboratory         sam@kalessin.jpl.nasa.gov

hui@yrloc.ipsa.reuter.COM (Roger Hui) (06/23/91)

Article <1991Jun21.210356.7574@jato.jpl.nasa.gov> sam@kalessin.jpl.nasa.gov (Sam Sirlin):

Sam, thank you for forwarding your observations.  
a) _20.1 ": 1e_10  should not have resulted in asterisks.
b) numbers with 3-digit exponents should not have signalled limit errors.

These bugs will be corrected in the next version.

-----------------------------------------------------------------
Roger Hui
Iverson Software Inc., 33 Major Street, Toronto, Ontario  M5S 2K9
(416) 925 6096

weg@convx1.ccit.arizona.edu (Eythan Weg) (06/27/91)

In article <1991Jun21.210356.7574@jato.jpl.nasa.gov> sam@kalessin.jpl.nasa.gov (Sam Sirlin) writes:


   In using J 2.9 on a sun4, I noticed what looks like a bug to me:

      _20.1 ": 1e_10
   ********************

      _20.1 ":1e10
     1.0e10

      _20.1 ": 1e_3
     1.0e_3

Following this note I tried this:
     ": 4j5
4j5

and also
     4":4j5
   4

I expected  both components to be formated the same way.  Am I wrong?

Eythan