The problem with fixing it is that ": in J6.01 and later does not conform to the Dictionary. I don't want to change printf until the Dictionary and the implementation agree (or there has been a pronouncement on which one is incorrect).
Henry Rich Tom Arneson wrote: > 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm