[cairo] Changing %f to %g in cairo-output-stream.c?
Behdad Esfahbod
behdad at behdad.org
Fri Oct 20 01:23:55 PDT 2006
Hi,
While working on Pango Postscript output from Firefox I noticed that we
are using %f to print double values in cairo-output-stream.c. Shouldn't
we be using %g instead? The difference is that %g generates a shorter
representation than %f. For example, printing 0.3, %g will print 0.3,
while %f prints 0.30000.
--
behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the cairo
mailing list