diff options
author | Eksperimental <eksperimental@users.noreply.github.com> | 2016-09-22 08:25:20 +0000 |
---|---|---|
committer | Andrea Leopardi <an.leopardi@gmail.com> | 2016-09-22 10:25:20 +0200 |
commit | 50a6b8722bac91c4f7239c708ad311463ee83d7a (patch) | |
tree | 20a9217203a28a6e480a01378831db034e436cf0 | |
parent | 89621604658a2785cab9039563c65328eecd33bb (diff) | |
download | elixir-50a6b8722bac91c4f7239c708ad311463ee83d7a.tar.gz |
Fix a typo in the "Operators" page of the docs (#5242)
-rw-r--r-- | lib/elixir/pages/Operators.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/pages/Operators.md b/lib/elixir/pages/Operators.md index 47f2370ae..ad1ccaaac 100644 --- a/lib/elixir/pages/Operators.md +++ b/lib/elixir/pages/Operators.md @@ -64,7 +64,7 @@ true The reason we can compare different data types is pragmatism. Sorting algorithms don’t need to worry about different data types in order to sort. For reference, the overall sorting order is defined below: ``` -number < atom < reference < functions < port < pid < tuple < map < list < bitstring +number < atom < reference < function < port < pid < tuple < map < list < bitstring ``` When comparing two numbers of different types (a number is either an integer or a float), a conversion to the type with lesser precision will always occur, unless the comparison operator used is either `===` or `!==`. A float will be considered more precise than an integer, unless the float is greater/less than +/-9007199254740992.0, at which point all the significant figures of the float are to the left of the decimal point. This behavior exists so that the comparison of large numbers remains transitive. |