Is Not a Number

Returns whether float x is an IEEE 754 “not-a-number” value.

Examples in Go
package main

import (
  "fmt"
  "math"
)

func main() {
  fmt.Println(math.IsNaN(math.Log(-1.0)))
}