func math.IsNaN
80 uses
math (current package)
acosh.go#L53: case x < 1 || IsNaN(x):
asinh.go#L53: if IsNaN(x) || IsInf(x, 0) {
atan2.go#L39: case IsNaN(y) || IsNaN(x):
atanh.go#L58: case x < -1 || x > 1 || IsNaN(x):
bits.go#L34: func IsNaN(f float64) (is bool) {
cbrt.go#L45: case x == 0 || IsNaN(x) || IsInf(x, 0):
dim.go#L47: case IsNaN(x) || IsNaN(y):
dim.go#L79: case IsNaN(x) || IsNaN(y):
erf.go#L202: case IsNaN(x):
erf.go#L283: case IsNaN(x):
erfinv.go#L78: if IsNaN(x) || x <= -1 || x >= 1 {
exp.go#L110: case IsNaN(x) || IsInf(x, 1):
exp.go#L158: case IsNaN(x) || IsInf(x, 1):
expm1.go#L151: case IsInf(x, 1) || IsNaN(x):
floor.go#L21: if x == 0 || IsNaN(x) || IsInf(x, 0) {
floor.go#L66: if x == 0 || IsNaN(x) || IsInf(x, 0) {
frexp.go#L28: case IsInf(f, 0) || IsNaN(f):
gamma.go#L134: case isNegInt(x) || IsInf(x, -1) || IsNaN(x):
hypot.go#L31: case IsNaN(p) || IsNaN(q):
j0.go#L94: case IsNaN(x):
j0.go#L172: case x < 0 || IsNaN(x):
j1.go#L91: case IsNaN(x):
j1.go#L171: case x < 0 || IsNaN(x):
jn.go#L60: case IsNaN(x):
jn.go#L237: case x < 0 || IsNaN(x):
ldexp.go#L26: case IsInf(frac, 0) || IsNaN(frac):
lgamma.go#L189: case IsNaN(x):
log.go#L102: case IsNaN(x) || IsInf(x, 1):
log1p.go#L122: case x < -1 || IsNaN(x): // includes -Inf
logb.go#L20: case IsNaN(x):
logb.go#L37: case IsNaN(x):
mod.go#L29: if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
nextafter.go#L15: case IsNaN(float64(x)) || IsNaN(float64(y)): // special case
nextafter.go#L37: case IsNaN(x) || IsNaN(y): // special case
pow.go#L51: case IsNaN(x) || IsNaN(y):
remainder.go#L51: case IsNaN(x) || IsNaN(y) || IsInf(x, 0) || y == 0:
sin.go#L132: case IsNaN(x) || IsInf(x, 0):
sin.go#L198: case x == 0 || IsNaN(x):
sincos.go#L25: case IsNaN(x) || IsInf(x, 0):
sqrt.go#L107: case x == 0 || IsNaN(x) || IsInf(x, 1):
tan.go#L97: case x == 0 || IsNaN(x):
math/big
float.go#L89: if math.IsNaN(x) {
float.go#L550: if math.IsNaN(x) {
encoding/json
encode.go#L577: if math.IsInf(f, 0) || math.IsNaN(f) {
github.com/aws/smithy-go/encoding
encoding.go#L15: if math.IsInf(v, 0) || math.IsNaN(v) {
github.com/aws/smithy-go/encoding/httpbinding
header.go#L93: case math.IsNaN(v):
query.go#L84: case math.IsNaN(v):
uri.go#L72: case math.IsNaN(v):
github.com/go-pg/pg/v10/types
append.go#L69: case math.IsNaN(v):
append.go#L91: case math.IsNaN(v):
github.com/golang/protobuf/jsonpb
encode.go#L543: case math.IsNaN(v.Float()):
github.com/golang/protobuf/proto
text_encode.go#L362: case math.IsNaN(vf):
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#L401: if math.IsInf(x, 0) || math.IsNaN(x) {
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L500: 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#L148: case math.IsNaN(n):
google.golang.org/protobuf/internal/encoding/text
encode.go#L184: case math.IsNaN(n):
google.golang.org/protobuf/proto
equal.go#L133: if math.IsNaN(fx) || math.IsNaN(fy) {
equal.go#L134: return math.IsNaN(fx) && math.IsNaN(fy)