From: Bert Vermeulen Date: Sun, 2 Sep 2012 13:41:19 +0000 (+0200) Subject: sr: output up to 12 significant digits for floats X-Git-Tag: dsupstream~710 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=40578aa487f6624db787289e4f254af14deee102;p=libsigrok.git sr: output up to 12 significant digits for floats --- diff --git a/output/float.c b/output/float.c index 650decc7..5c9631f4 100644 --- a/output/float.c +++ b/output/float.c @@ -126,7 +126,7 @@ static int data(struct sr_output *o, const uint8_t *data_in, max = length_in / sizeof(float); for (i = 0; i < max;) { for (j = 0; j < ctx->num_enabled_probes; j++) { - g_string_append_printf(outstr, "%s: %f\n", + g_string_append_printf(outstr, "%s: %.12f\n", (char *)g_ptr_array_index(ctx->probelist, j), fdata[i++]); }