Return to the glossary index

Nan, short for “not a number,” is a term used in computer science to represent a value that is not a real number. It generally appears when a mathematical operation cannot produce a valid numerical result. In other words, Nan indicates that the calculation performed resulted in an undefined value or one that cannot be represented numerically. It is important to handle cases where Nan is involved correctly to avoid potential calculation errors and ensure the reliability of mathematical operations in computer programs.

Return to the glossary index