DevBits
Home
Atlas
Play
About
Sign up
Log in
All
Go
Math
Is Not a Number
Is Not a Number in Go
Is Not a Number in Go
Posted by
yhuang
Public (Editable by Users)
Language
Go
Dependencies
import "fmt"
import "math"
fmt.Println()
math.IsNaN()
math.Log()
Run
Go 1.15.5
Play
Copy
Copy To
Official Go Playground
Expand
Fork
Edit
main.go
package main import ( "fmt" "math" ) func main() { fmt.Println(math.IsNaN(math.Log(-1.0))) }
Stdout
Stderr