This is my second try to get the 'e' format fixed in printf.

 

Here's the problem:

 

NB. ----------------------------------

   JVERSION

Installer: j602a_win.exe

Engine: j602/2008-03-03/16:45

Library: 6.02.050

 

Load 'printf'

 

   '%0.4e' sprintf 3.14

.1400e0

 

   '%0.4e' sprintf _3.14

3.1400e0

 

   '%0.4g' sprintf 3.14%1e6

.1400e-6

 

NB. The first digit of a scientific format is dropped.

 

NB. ------ end J ----------------------------

 

This utility must not be used by many, and I've switched to the 8!: family
for most of my formatting, but it is in the main folder, and should work
properly, or be removed from the J distribution.

 

Tom

 

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

Reply via email to