mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
when printing floating literals use %lg instead of %lf for better output
This commit is contained in:
@@ -944,7 +944,7 @@ pgf_print_literal(PgfLiteral lit,
|
|||||||
}
|
}
|
||||||
case PGF_LITERAL_FLT: {
|
case PGF_LITERAL_FLT: {
|
||||||
PgfLiteralFlt* lit = ei.data;
|
PgfLiteralFlt* lit = ei.data;
|
||||||
gu_printf(out, err, "%lf", lit->val);
|
gu_printf(out, err, "%lg", lit->val);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user