Commit 3f61b65
committed
stdlib_noniso.cpp: fix another rounding error in dtostrf
Rounding up the passed float/double to the specified presicion must be the
*very first* thing we do, before doing anything else with that value
(In this case, the issue was cause by digitsBe4Decimal() returning an
incorrect value, because it was being called before passed value was
rounded up)1 parent 8aabac9 commit 3f61b65
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
0 commit comments