isnan function

Syntax

  • bool isnan(float value)

Returns

True if value is not a number, false otherwise.

Description

The isnan function checks if value is not a number.

Related

Examples

example.1
	isnan(1)
	# result = false
example.2
	isnan(ln(-1))
	# result = true
example.3
	isnan(float("a"))
	# result = true

In this topic