func math.IsNaN
72 uses
math (current package)
acosh.go#L54: case x < 1 || IsNaN(x):
asinh.go#L54: if IsNaN(x) || IsInf(x, 0) {
atan2.go#L40: case IsNaN(y) || IsNaN(x):
atanh.go#L59: case x < -1 || x > 1 || IsNaN(x):
bits.go#L34: func IsNaN(f float64) (is bool) {
cbrt.go#L46: case x == 0 || IsNaN(x) || IsInf(x, 0):
dim.go#L52: case IsNaN(x) || IsNaN(y):
dim.go#L88: case IsNaN(x) || IsNaN(y):
erf.go#L203: case IsNaN(x):
erf.go#L285: case IsNaN(x):
erfinv.go#L79: if IsNaN(x) || x <= -1 || x >= 1 {
exp.go#L112: case IsNaN(x) || IsInf(x, 1):
exp.go#L160: case IsNaN(x) || IsInf(x, 1):
expm1.go#L153: case IsInf(x, 1) || IsNaN(x):
floor.go#L22: if x == 0 || IsNaN(x) || IsInf(x, 0) {
floor.go#L69: if x == 0 || IsNaN(x) || IsInf(x, 0) {
frexp.go#L29: case IsInf(f, 0) || IsNaN(f):
gamma.go#L135: case isNegInt(x) || IsInf(x, -1) || IsNaN(x):
hypot.go#L33: case IsNaN(p) || IsNaN(q):
j0.go#L95: case IsNaN(x):
j0.go#L174: case x < 0 || IsNaN(x):
j1.go#L92: case IsNaN(x):
j1.go#L173: case x < 0 || IsNaN(x):
jn.go#L61: case IsNaN(x):
jn.go#L239: case x < 0 || IsNaN(x):
ldexp.go#L27: case IsInf(frac, 0) || IsNaN(frac):
lgamma.go#L190: case IsNaN(x):
log.go#L103: case IsNaN(x) || IsInf(x, 1):
log1p.go#L123: case x < -1 || IsNaN(x): // includes -Inf
logb.go#L21: case IsNaN(x):
logb.go#L39: case IsNaN(x):
mod.go#L30: if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
nextafter.go#L16: case IsNaN(float64(x)) || IsNaN(float64(y)): // special case
nextafter.go#L39: case IsNaN(x) || IsNaN(y): // special case
pow.go#L61: case IsNaN(x) || IsNaN(y):
remainder.go#L52: case IsNaN(x) || IsNaN(y) || IsInf(x, 0) || y == 0:
sin.go#L133: case IsNaN(x) || IsInf(x, 0):
sin.go#L200: case x == 0 || IsNaN(x):
sincos.go#L26: case IsNaN(x) || IsInf(x, 0):
sqrt.go#L103: case x == 0 || IsNaN(x) || IsInf(x, 1):
tan.go#L98: case x == 0 || IsNaN(x):
math/big
float.go#L89: if math.IsNaN(x) {
float.go#L555: if math.IsNaN(x) {
encoding/json
encode.go#L542: if math.IsInf(f, 0) || math.IsNaN(f) {
github.com/google/go-cmp/cmp/internal/value
sort.go#L48: return fx < fy || math.IsNaN(fx) && !math.IsNaN(fy)
sort.go#L52: if rx == ry || (math.IsNaN(rx) && math.IsNaN(ry)) {
sort.go#L53: return ix < iy || math.IsNaN(ix) && !math.IsNaN(iy)
sort.go#L55: return rx < ry || math.IsNaN(rx) && !math.IsNaN(ry)
go.pact.im/x/zapjournal
append.go#L21: if math.IsNaN(im) || (!math.IsInf(im, 0) && im > 0) {
go.uber.org/zap/zapcore
json_encoder.go#L478: case math.IsNaN(val):
go/constant
value.go#L413: if math.IsInf(x, 0) || math.IsNaN(x) {
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L485: if v := m.Get(fd).Float(); math.IsNaN(v) || math.IsInf(v, 0) {
google.golang.org/protobuf/internal/encoding/defval
default.go#L154: case math.IsNaN(f):
google.golang.org/protobuf/internal/encoding/json
encode.go#L150: case math.IsNaN(n):
google.golang.org/protobuf/internal/encoding/text
encode.go#L186: case math.IsNaN(n):
google.golang.org/protobuf/reflect/protoreflect
value_equal.go#L83: if math.IsNaN(x) || math.IsNaN(y) {
value_equal.go#L84: return math.IsNaN(x) && math.IsNaN(y)