diff options
author | Sverker Eriksson <[email protected]> | 2017-02-14 15:53:04 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-02-14 16:02:03 +0100 |
commit | d73423cdba178c166f25e00a4608ccc8d0465937 (patch) | |
tree | 78aa57f5dfe7ed6a388d0d28d0c6d9ab335a31f8 /erts/emulator/beam/erl_bif_re.c | |
parent | 3b7a6ffddc819bf305353a593904cea9e932e7dc (diff) | |
download | otp-d73423cdba178c166f25e00a4608ccc8d0465937.tar.gz otp-d73423cdba178c166f25e00a4608ccc8d0465937.tar.bz2 otp-d73423cdba178c166f25e00a4608ccc8d0465937.zip |
erts: Fix round/1 for large floats
1> round(6209607916799025.0).
6209607916799026
Problem: Adding/subtracting 0.5 and large double floats between
(1 bsl 52) and (1 bsl 53) does not give reliable results.
Solution: Use round() function in math.h.
Diffstat (limited to 'erts/emulator/beam/erl_bif_re.c')
0 files changed, 0 insertions, 0 deletions