aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/num_bif_SUITE.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-16 15:45:52 +0100
committerSverker Eriksson <[email protected]>2017-02-16 15:45:52 +0100
commitb10b410fd37f960d4842b35bd51ea0fb0506a186 (patch)
treeacdab34f73c24def828bf1ce926a8f36df14ff3f /erts/emulator/test/num_bif_SUITE.erl
parent381f97b30092624b238a68909855692929d6f8bf (diff)
parentd73423cdba178c166f25e00a4608ccc8d0465937 (diff)
downloadotp-b10b410fd37f960d4842b35bd51ea0fb0506a186.tar.gz
otp-b10b410fd37f960d4842b35bd51ea0fb0506a186.tar.bz2
otp-b10b410fd37f960d4842b35bd51ea0fb0506a186.zip
Merge branch 'sverker/round-bug/OTP-14227' into maint
* sverker/round-bug/OTP-14227: erts: Fix round/1 for large floats
Diffstat (limited to 'erts/emulator/test/num_bif_SUITE.erl')
-rw-r--r--erts/emulator/test/num_bif_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/num_bif_SUITE.erl b/erts/emulator/test/num_bif_SUITE.erl
index d1c9648017..bb85738454 100644
--- a/erts/emulator/test/num_bif_SUITE.erl
+++ b/erts/emulator/test/num_bif_SUITE.erl
@@ -293,6 +293,9 @@ t_round(Config) when is_list(Config) ->
4294967297 = round(id(4294967296.9)),
-4294967296 = -round(id(4294967296.1)),
-4294967297 = -round(id(4294967296.9)),
+
+ 6209607916799025 = round(id(6209607916799025.0)),
+ -6209607916799025 = round(id(-6209607916799025.0)),
ok.
t_trunc(Config) when is_list(Config) ->