From 41a3054e9be03f7496fdbe7d0716e7986524bb35 Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 25 May 2016 09:34:40 +0000 Subject: [PATCH] when expressions with Float literals are printed, we should use the same format that is used by the linearizer --- src/runtime/c/pgf/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/expr.c b/src/runtime/c/pgf/expr.c index ebb3e8138..3c37a4b72 100644 --- a/src/runtime/c/pgf/expr.c +++ b/src/runtime/c/pgf/expr.c @@ -1189,7 +1189,7 @@ pgf_print_literal(PgfLiteral lit, } case PGF_LITERAL_FLT: { PgfLiteralFlt* lit = ei.data; - gu_double_to_string(lit->val, out, err); + gu_printf(out, err, "%lf", lit->val); break; } default: