isnan function

Syntax

  • bool isnan(value)

Parameters

  1. value—float

Returns

True if value is not a number, false otherwise.

Description

The isnan function checks if value is not a number.

Related

Examples

isnan(1)
# result = false
isnan(ln(-1))
# result = true
isnan(float("a"))
# result = true

In this topic