From cf78f7c581ab9eb61fa404a15bbef35f79839e43 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Thu, 9 Aug 2018 10:52:05 +0200 Subject: Document how utf8 atoms are ordered --- system/doc/reference_manual/expressions.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/doc') diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml index 8bd4412762..a91c8e0178 100644 --- a/system/doc/reference_manual/expressions.xml +++ b/system/doc/reference_manual/expressions.xml @@ -578,8 +578,7 @@ number < atom < reference < fun < port < pid < tuple < map ascending term order and then by values in key order. In maps key order integers types are considered less than floats types.

-

Atoms are compared using their string value, character by character. -

+

Atoms are compared using their string value, codepoint by codepoint.

When comparing an integer to a float, the term with the lesser precision is converted into the type of the other term, unless the operator is one of =:= or =/=. A float is more precise than -- cgit v1.2.3