diff options
author | Lukas Larsson <[email protected]> | 2011-07-26 17:11:41 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-10-11 17:10:19 +0200 |
commit | e04883d448df6e622535020449903e2f2a0f32c9 (patch) | |
tree | c7db6e79663481ff9e9f1cb2b79b86cfe61cfec9 /erts/emulator/beam/big.h | |
parent | 622daf3b96666f8bbabec44a15b26a188a83b95e (diff) | |
download | otp-e04883d448df6e622535020449903e2f2a0f32c9.tar.gz otp-e04883d448df6e622535020449903e2f2a0f32c9.tar.bz2 otp-e04883d448df6e622535020449903e2f2a0f32c9.zip |
Update integer and floating point number comparisons
For floating point values which are greater than 9007199254740990.0 or
smaller than -9007199254740990.0, the floating point numbers are now
converted to integers during comparison with an integer. This makes
number comparisons transitive for large floating point numbers.
Diffstat (limited to 'erts/emulator/beam/big.h')
-rw-r--r-- | erts/emulator/beam/big.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/big.h b/erts/emulator/beam/big.h index 2afc37004f..256f1c2b45 100644 --- a/erts/emulator/beam/big.h +++ b/erts/emulator/beam/big.h @@ -140,6 +140,7 @@ Eterm big_lshift(Eterm, Sint, Eterm*); int big_comp (Wterm, Wterm); int big_ucomp (Eterm, Eterm); int big_to_double(Wterm x, double* resp); +Eterm double_to_big(double, Eterm*); Eterm small_to_big(Sint, Eterm*); Eterm uint_to_big(Uint, Eterm*); Eterm uword_to_big(UWord, Eterm*); |