musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011年05月11日 19:58:03 -0400
committerRich Felker <dalias@aerifal.cx>2011年05月11日 19:58:03 -0400
commit8628eff9128d66cc69dbc301341dc55130a9817e (patch)
treef6eaf02a2b338a200303de07054f3a5414326a12 /src/string
parent15b77d52c950c375514d2e8152e7112fd018e20e (diff)
downloadmusl-8628eff9128d66cc69dbc301341dc55130a9817e.tar.gz
fix the last known rounding bug in floating point printing
the observed symptom was that the code was incorrectly rounding up 1.0625 to 1.063 despite the rounding mode being round-to-nearest with ties broken by rounding to even last place. however, the code was just not right in many respects, and i'm surprised it worked as well as it did. this time i tested the values that end up in the variables round, small, and the expression round+small, and all look good.
Diffstat (limited to 'src/string')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 18:14:56 +0000

AltStyle によって変換されたページ (->オリジナル) /