[Jprogramming] problem with e and g fields in printf

Tom Arneson tom at tomarneson.com
Mon Jan 18 11:43:14 HKT 2010


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



More information about the Programming mailing list