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 May 31, 2024
1 parent 6322164 commit 158134f
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.

It strays from the IEEE standard when it comes to handling of 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.

It strays from the IEEE standard when it comes to handling of 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 158134f

Please sign in to comment.