Internal round function bugfix

This commit is contained in:
Michael M 2015-10-02 10:16:27 +01:00
parent 6bb22d94f7
commit c8437914a7
1 changed files with 1 additions and 1 deletions

View File

@ -1300,7 +1300,7 @@
sd -= x.e + 1;
// 1, 0.1, 0.01, 0.001, 0.0001 etc.
xc[0] = pows10[ sd % LOG_BASE ];
xc[0] = pows10[ ( LOG_BASE - sd % LOG_BASE ) % LOG_BASE ];
x.e = -sd || 0;
} else {