From 659b75fc2b1e7ed60490193e61680c231560f63a Mon Sep 17 00:00:00 2001 From: David Harris Date: Mon, 28 Feb 2022 04:28:07 +0000 Subject: [PATCH] Corrected printing doubles --- examples/fp/fpcalc/fpcalc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fp/fpcalc/fpcalc.c b/examples/fp/fpcalc/fpcalc.c index 6b9dc5354..116cf8680 100644 --- a/examples/fp/fpcalc/fpcalc.c +++ b/examples/fp/fpcalc/fpcalc.c @@ -118,7 +118,7 @@ void printF64(char *msg, float64_t f) { else sprintf(sci, "%c1.%s x 2^%d", sign, fractstr, exp-1023); //printf ("%s: 0x%016lx = %lg\n", msg, conv.v, conv.d); - printf ("%s: 0x%016x = %g = %s: Biased Exp %d Fract 0x%lx\n", + printf ("%s: 0x%016lx = %lg = %s: Biased Exp %d Fract 0x%lx\n", msg, conv.v, conv.d, sci, exp, fract); }