Commit 6682019a authored by Morten Welinder's avatar Morten Welinder

Fix 1347.

parent d7a764b8
1999-05-27 Morten Welinder <terra@diku.dk>
* src/expr.c (value_get_as_string): Improve precision -- this
impacts the results of saves.
1999-05-27 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_mode): Ignore strings as
......
1999-05-27 Morten Welinder <terra@diku.dk>
* src/expr.c (value_get_as_string): Improve precision -- this
impacts the results of saves.
1999-05-27 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_mode): Ignore strings as
......
1999-05-27 Morten Welinder <terra@diku.dk>
* src/expr.c (value_get_as_string): Improve precision -- this
impacts the results of saves.
1999-05-27 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_mode): Ignore strings as
......
1999-05-27 Morten Welinder <terra@diku.dk>
* src/expr.c (value_get_as_string): Improve precision -- this
impacts the results of saves.
1999-05-27 Morten Welinder <terra@diku.dk>
* src/fn-stat.c (callback_function_mode): Ignore strings as
......
......@@ -143,7 +143,7 @@ value_get_as_string (const Value *value)
return g_strdup_printf ("%d", value->v.v_int);
case VALUE_FLOAT:
return g_strdup_printf ("%g", value->v.v_float);
return g_strdup_printf ("%.*g", DBL_DIG, value->v.v_float);
case VALUE_ARRAY: {
GString *str = g_string_new ("{");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment