1
0
forked from GitHub/gf-core

when printing floating literals use %lg instead of %lf for better output

This commit is contained in:
kr.angelov
2013-11-06 09:46:29 +00:00
parent acefeec541
commit d094d671bd

View File

@@ -944,7 +944,7 @@ pgf_print_literal(PgfLiteral lit,
}
case PGF_LITERAL_FLT: {
PgfLiteralFlt* lit = ei.data;
gu_printf(out, err, "%lf", lit->val);
gu_printf(out, err, "%lg", lit->val);
break;
}
default: