Skip to content

Glossary: Data Structures and Algorithms in Rust

NaN

Also written: not a number

A special floating-point value meaning "not a number", which isn't equal even to itself. That is why f64 can't be a hash key or be fully sorted with Ord.

Where the book teaches it

Related terms

HashableOrdering