diff options
author | Lukas Larsson <[email protected]> | 2013-02-08 18:23:22 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2013-02-14 15:36:50 +0100 |
commit | 5279b3af4efee5d3e7d9755f0f06bd7b0f5dd05c (patch) | |
tree | 38f02e7cf916d1a2b80611c5ae9ec68f4c063355 /lib/compiler/src/erl_bifs.erl | |
parent | b074099cc6bdb81285a17e0248373f199c695719 (diff) | |
download | otp-5279b3af4efee5d3e7d9755f0f06bd7b0f5dd05c.tar.gz otp-5279b3af4efee5d3e7d9755f0f06bd7b0f5dd05c.tar.bz2 otp-5279b3af4efee5d3e7d9755f0f06bd7b0f5dd05c.zip |
Add float_to_binary and binary_to_float
Diffstat (limited to 'lib/compiler/src/erl_bifs.erl')
-rw-r--r-- | lib/compiler/src/erl_bifs.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/erl_bifs.erl b/lib/compiler/src/erl_bifs.erl index 0854ad3a3e..cc07f0b9bc 100644 --- a/lib/compiler/src/erl_bifs.erl +++ b/lib/compiler/src/erl_bifs.erl @@ -68,6 +68,7 @@ is_pure(erlang, atom_to_list, 1) -> true; is_pure(erlang, binary_part, 2) -> true; is_pure(erlang, binary_part, 3) -> true; is_pure(erlang, binary_to_atom, 2) -> true; +is_pure(erlang, binary_to_float, 1) -> true; is_pure(erlang, binary_to_integer, 1) -> true; is_pure(erlang, binary_to_list, 1) -> true; is_pure(erlang, binary_to_list, 3) -> true; @@ -76,6 +77,7 @@ is_pure(erlang, byte_size, 1) -> true; is_pure(erlang, element, 2) -> true; is_pure(erlang, float, 1) -> true; is_pure(erlang, float_to_list, 1) -> true; +is_pure(erlang, float_to_binary, 1) -> true; is_pure(erlang, hash, 2) -> false; is_pure(erlang, hd, 1) -> true; is_pure(erlang, integer_to_binary, 1) -> true; |