Skip to content

Commit

Permalink
Add documentation for handling of NaNs
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlussel committed Jun 6, 2024
1 parent 8493792 commit b673668
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions presto-docs/src/main/sphinx/language/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,22 @@ Floating-Point
A real is a 32-bit inexact, variable-precision implementing the
IEEE Standard 754 for Binary Floating-Point Arithmetic.

Presto strays from the IEEE standard when handling NaNs.
In Presto, NaN is considered larger than any other value for
all comparison and sorting operations. Additionally, NaN=NaN will
be true for all equality and distinctness purposes.

``DOUBLE``
^^^^^^^^^^

A double is a 64-bit inexact, variable-precision implementing the
IEEE Standard 754 for Binary Floating-Point Arithmetic.

Presto strays from the IEEE standard when handling NaNs.
In Presto, NaN is considered larger than any other value for
all comparison and sorting operations. Additionally, NaN=NaN will
be true for all equality and distinctness purposes.

Fixed-Precision
---------------

Expand Down

0 comments on commit b673668

Please sign in to comment.