Algorithms

NaN

A special floating-point value that means "not a number". It shows up with impossible calculations.

Example

0 / 0 gives NaN. And any calculation that uses a NaN, like NaN + 5, also gives NaN.

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.