From 941d2b26d2c4c714eff95ba8dd45b4cf4bf03ab4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 16 Apr 2019 14:16:19 +0100 Subject: [Minor] Oops, fix logic --- contrib/fpconv/fpconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/fpconv/fpconv.c b/contrib/fpconv/fpconv.c index 12c67cfa6..b01793400 100644 --- a/contrib/fpconv/fpconv.c +++ b/contrib/fpconv/fpconv.c @@ -220,7 +220,7 @@ static int emit_digits(char* digits, int ndigits, char* dest, int K, bool neg, } /* write decimal w/o scientific notation */ - if(scientific && (K < 0 && (K > -7 || exp < 4))) { + if(!scientific || (K < 0 && (K > -7 || exp < 4))) { int offset = ndigits - absv(K); /* fp < 1.0 -> write leading zero */ if(offset <= 0) { -- cgit v1.2.3