output of fmt has changed for %g

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=19909
CL=19909
This commit is contained in:
Rob Pike 2008-11-24 11:59:23 -08:00
parent 6c4d8f8309
commit 375b1e2a0e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func main() {
E(f.s("\tf ").f64(1234.5678e-8), "\tf 0.000012");
E(f.s("\tf ").f64(-7.0), "\tf -7.000000");
E(f.s("\tf ").f64(-1e-9), "\tf -0.000000");
E(f.s("\tg ").g64(1234.5678e3), "\tg 1234567.8");
E(f.s("\tg ").g64(1234.5678e3), "\tg 1.2345678e+06");
E(f.s("\tg ").g64(1234.5678e-8), "\tg 1.2345678e-05");
E(f.s("\tg ").g64(-7.0), "\tg -7");
E(f.s("\tg ").g64(-1e-9), "\tg -1e-09");