func math.IsNaN
89 uses
math (current package)
acosh.go#L48: case x < 1 || IsNaN(x):
asinh.go#L48: if IsNaN(x) || IsInf(x, 0) {
atan2.go#L34: case IsNaN(y) || IsNaN(x):
atanh.go#L53: case x < -1 || x > 1 || IsNaN(x):
bits.go#L34: func IsNaN(f float64) (is bool) {
cbrt.go#L40: case x == 0 || IsNaN(x) || IsInf(x, 0):
dim.go#L42: case IsNaN(x) || IsNaN(y):
dim.go#L69: case IsNaN(x) || IsNaN(y):
erf.go#L197: case IsNaN(x):
erf.go#L273: case IsNaN(x):
erfinv.go#L78: if IsNaN(x) || x <= -1 || x >= 1 {
exp.go#L105: case IsNaN(x) || IsInf(x, 1):
exp.go#L148: case IsNaN(x) || IsInf(x, 1):
expm1.go#L146: case IsInf(x, 1) || IsNaN(x):
floor.go#L16: if x == 0 || IsNaN(x) || IsInf(x, 0) {
floor.go#L51: if x == 0 || IsNaN(x) || IsInf(x, 0) {
frexp.go#L23: case IsInf(f, 0) || IsNaN(f):
gamma.go#L134: case isNegInt(x) || IsInf(x, -1) || IsNaN(x):
hypot.go#L26: 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#L21: case IsInf(frac, 0) || IsNaN(frac):
lgamma.go#L189: case IsNaN(x):
log.go#L97: case IsNaN(x) || IsInf(x, 1):
log1p.go#L117: case x < -1 || IsNaN(x): // includes -Inf
logb.go#L20: case IsNaN(x):
logb.go#L37: case IsNaN(x):
mod.go#L24: 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#L46: case IsNaN(x) || IsNaN(y):
remainder.go#L46: case IsNaN(x) || IsNaN(y) || IsInf(x, 0) || y == 0:
sin.go#L127: case IsNaN(x) || IsInf(x, 0):
sin.go#L188: case x == 0 || IsNaN(x):
sincos.go#L25: case IsNaN(x) || IsInf(x, 0):
sqrt.go#L102: case x == 0 || IsNaN(x) || IsInf(x, 1):
tan.go#L92: case x == 0 || IsNaN(x):
math/big
float.go#L89: if math.IsNaN(x) {
float.go#L548: if math.IsNaN(x) {
encoding/json
encode.go#L577: if math.IsInf(f, 0) || math.IsNaN(f) {
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
build.go#L212: if math.IsInf(f, 0) || math.IsNaN(f) {
github.com/evanw/esbuild/internal/js_ast
js_ast.go#L727: return Expr{Loc: expr.Loc, Data: &EBoolean{Value: e.Value == 0 || math.IsNaN(e.Value)}}, true
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L723: return e.Value != 0 && !math.IsNaN(e.Value), noSideEffects, true
js_parser.go#L9332: if math.IsNaN(e.Value) {
js_parser.go#L9761: return math.IsInf(e.Value, 1) || math.IsNaN(e.Value)
github.com/golang/protobuf/proto
text_encode.go#L362: case math.IsNaN(vf):
github.com/google/go-cmp/cmp/cmpopts
equate.go#L49: if margin < 0 || fraction < 0 || math.IsNaN(margin) || math.IsNaN(fraction) {
equate.go#L62: return !math.IsNaN(x) && !math.IsNaN(y) && !math.IsInf(x, 0) && !math.IsInf(y, 0)
equate.go#L87: return math.IsNaN(x) && math.IsNaN(y)
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)
github.com/jackc/pgtype
numeric.go#L73: if math.IsNaN(float64(value)) {
numeric.go#L83: if math.IsNaN(value) {
github.com/prometheus/common/expfmt
text_create.go#L442: case math.IsNaN(f):
text_parse.go#L418: case !math.IsNaN(p.currentQuantile):
text_parse.go#L437: case !math.IsNaN(p.currentBucket):
github.com/prometheus/common/model
value.go#L70: return math.IsNaN(float64(v)) && math.IsNaN(float64(o))
go.opencensus.io/zpages
rpcz.go#L219: if math.IsInf(ms, 0) || math.IsNaN(ms) {
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#L186: case math.IsNaN(n):
google.golang.org/protobuf/proto
equal.go#L122: if math.IsNaN(fx) || math.IsNaN(fy) {
equal.go#L123: return math.IsNaN(fx) && math.IsNaN(fy)
google.golang.org/protobuf/types/known/structpb
struct.pb.go#L405: case math.IsNaN(v.NumberValue):
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |