Use dyadic Format with a negative sign on  either w or d part of the left
argument

  12j_5 ": 123%9874563210
 1.24562e_8 
   

Any negative sign is placed just before the leading digit. If w>:0 and d>:0,
the result is right-justified in the space. Otherwise (if w<0 or d<0), the
result is put in exponential form (with one digit before the decimal point)
and is left-justified except for two fixed spaces on the left (including one
for a possible negative sign).

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ian Clark
Sent: Wednesday, October 19, 2011 19:32
To: Programming forum
Subject: [Jprogramming] scientific notation

Default Format (":) flips over into scientific notation at around 2^31
(on my Mac).

   ": 2147480000
2147480000
   ": 2147490000
2.14749e9

How can I force scientific notation to appear (a) all the time, (b) >=
 a chosen number n, say n=1e6 ?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to