Looks to me like a bug got fixed because there should
not have been any leading blanks in the result.



----- Original Message -----
From: Henry Rich <[email protected]>
Date: Monday, January 18, 2010 7:50
Subject: Re: [Jprogramming] problem with e and g fields in printf
To: Programming forum <[email protected]>

> J5.04:
> 
>     0j_6 ": 5.5
>    5.500000e0
> 
> J6.02:
> 
>     0j_6 ": 5.5
> 5.500000e0
> 
> ": changed.  I'll need to fix it.  Yo Roger - do you 
> have any notes on 
> what changed in ": between 5.04 and 6.01?
> 
> Henry Rich
> 
> Tom Arneson wrote:
> > Something happened to break the e field specification in 
> sprintf from
> > printf.ijs
> > 
> >  
> > 
> >    '%0.2e'sprintf 1e_4
> > 
> > .00e-4
> > 
> >    '%f'sprintf 1e_4
> > 
> > 0.000100
> > 
> >    '%g'sprintf 1e_4
> > 
> > 0.000100
> > 
> >    '%e'sprintf 1e_4
> > 
> > .000000e-4
> > 
> >    '%5.1e'sprintf 1e_4
> > 
> > .0e-4
> > 
> >  
> > 
> > The following is from the Test Lines
> > 
> >    ': 5.500000e0:' -: ':%e:' sprintf 5.5
> > 
> > 0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to