Browse Source

[Minor] Oops, fix logic

tags/1.9.2
Vsevolod Stakhov 5 years ago
parent
commit
941d2b26d2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      contrib/fpconv/fpconv.c

+ 1
- 1
contrib/fpconv/fpconv.c View File

} }


/* write decimal w/o scientific notation */ /* 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); int offset = ndigits - absv(K);
/* fp < 1.0 -> write leading zero */ /* fp < 1.0 -> write leading zero */
if(offset <= 0) { if(offset <= 0) {

Loading…
Cancel
Save