Skip to content

Commit

Permalink
CLDR-14712 define NaN handling (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati authored Oct 6, 2021
1 parent 2940285 commit 6508be0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ldml/tr35-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,11 @@ Once you have a list of `unitPreference` elements, find the applicable unitPrefe
* ≥ 30.48 meters ⇒ foot:inch
* Search for the first matching unitPreference for the input measure. If there is no match (eg < 100 feet in the above example), take the last unitPreference. That is, the last unitPreference is effectively geq="0"

For completeness, when comparing doubles to the geq values:
* Negative numbers are treated as if they were positive.
* _infinity_ is treated as being the largest possible value.
* NaN is treated as the smallest possible value.

Once a matching `unitPreference` element is found:

* The unit is the element value
Expand Down

0 comments on commit 6508be0

Please sign in to comment.