Is Not a Number in Go

Posted by yhuang
Public (Editable by Users)
Go
Edit
package main

import (
  "fmt"
  "math"
)

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