func math.IsInf
97 uses
math (current package)
asinh.go#L53: if IsNaN(x) || IsInf(x, 0) {
atan2.go#L48: case IsInf(x, 0):
atan2.go#L49: if IsInf(x, 1) {
atan2.go#L51: case IsInf(y, 0):
atan2.go#L58: case IsInf(y, 0):
atan2.go#L63: case IsInf(y, 0):
bits.go#L46: func IsInf(f float64, sign int) bool {
cbrt.go#L45: case x == 0 || IsNaN(x) || IsInf(x, 0):
dim.go#L45: case IsInf(x, 1) || IsInf(y, 1):
dim.go#L77: case IsInf(x, -1) || IsInf(y, -1):
erf.go#L204: case IsInf(x, 1):
erf.go#L206: case IsInf(x, -1):
erf.go#L285: case IsInf(x, 1):
erf.go#L287: case IsInf(x, -1):
exp.go#L110: case IsNaN(x) || IsInf(x, 1):
exp.go#L112: case IsInf(x, -1):
exp.go#L158: case IsNaN(x) || IsInf(x, 1):
exp.go#L160: case IsInf(x, -1):
expm1.go#L151: case IsInf(x, 1) || IsNaN(x):
expm1.go#L153: case IsInf(x, -1):
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):
gamma.go#L136: case IsInf(x, 1):
gamma.go#L170: if IsInf(d, 0) {
hypot.go#L29: case IsInf(p, 0) || IsInf(q, 0):
j0.go#L96: case IsInf(x, 0):
j0.go#L174: case IsInf(x, 1):
j1.go#L93: case IsInf(x, 0) || x == 0:
j1.go#L173: case IsInf(x, 1):
jn.go#L62: case IsInf(x, 0):
jn.go#L239: case IsInf(x, 1):
jn.go#L296: for i := 1; i < n && !IsInf(b, -1); i++ {
ldexp.go#L26: case IsInf(frac, 0) || IsNaN(frac):
lgamma.go#L192: case IsInf(x, 0):
log.go#L102: case IsNaN(x) || IsInf(x, 1):
log1p.go#L126: case IsInf(x, 1):
logb.go#L18: case IsInf(x, 0):
logb.go#L39: case IsInf(x, 0):
mod.go#L29: if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
pow.go#L66: case IsInf(y, 0):
pow.go#L70: case (Abs(x) < 1) == IsInf(y, 1):
pow.go#L75: case IsInf(x, 0):
pow.go#L76: if IsInf(x, -1) {
remainder.go#L51: case IsNaN(x) || IsNaN(y) || IsInf(x, 0) || y == 0:
remainder.go#L53: case IsInf(y, 0):
sin.go#L132: case IsNaN(x) || IsInf(x, 0):
sin.go#L200: case IsInf(x, 0):
sincos.go#L25: case IsNaN(x) || IsInf(x, 0):
sqrt.go#L107: case x == 0 || IsNaN(x) || IsInf(x, 1):
tan.go#L99: case IsInf(x, 0):
math/big
float.go#L559: if math.IsInf(x, 0) {
rat.go#L165: if math.IsInf(float64(f), 0) {
rat.go#L263: if math.IsInf(f, 0) {
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#L95: case math.IsInf(v, 1):
header.go#L97: case math.IsInf(v, -1):
query.go#L86: case math.IsInf(v, 1):
query.go#L88: case math.IsInf(v, -1):
uri.go#L74: case math.IsInf(v, 1):
uri.go#L76: case math.IsInf(v, -1):
github.com/go-pg/pg/v10/types
append.go#L74: case math.IsInf(v, 1):
append.go#L79: case math.IsInf(v, -1):
append.go#L93: case math.IsInf(v, 1):
append.go#L95: case math.IsInf(v, -1):
github.com/golang/protobuf/jsonpb
encode.go#L537: case math.IsInf(v.Float(), +1):
encode.go#L540: case math.IsInf(v.Float(), -1):
github.com/golang/protobuf/proto
text_encode.go#L358: case math.IsInf(vf, +1):
text_encode.go#L360: case math.IsInf(vf, -1):
github.com/valyala/fastjson/fastfloat
parse.go#L232: if err != nil && !math.IsInf(f, 0) {
parse.go#L284: if err != nil && !math.IsInf(f, 0) {
parse.go#L330: if err != nil && !math.IsInf(f, 0) {
parse.go#L390: if err != nil && !math.IsInf(f, 0) {
parse.go#L442: if err != nil && !math.IsInf(f, 0) {
parse.go#L488: if err != nil && !math.IsInf(f, 0) {
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#L480: case math.IsInf(val, 1):
json_encoder.go#L482: case math.IsInf(val, -1):
go/constant
value.go#L203: if x, _ := f.Float64(); f.Sign() == 0 == (x == 0) && !math.IsInf(x, 0) {
value.go#L357: if math.IsInf(x, 0) {
value.go#L401: if math.IsInf(x, 0) || math.IsNaN(x) {
go/types
expr.go#L240: return !math.IsInf(f, 0)
expr.go#L246: if !math.IsInf(f, 0) {
expr.go#L254: return !math.IsInf(f, 0)
expr.go#L259: if !math.IsInf(f, 0) {
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#L150: case math.IsInf(f, -1):
default.go#L152: case math.IsInf(f, +1):
google.golang.org/protobuf/internal/encoding/json
encode.go#L150: case math.IsInf(n, +1):
encode.go#L152: case math.IsInf(n, -1):
google.golang.org/protobuf/internal/encoding/text
encode.go#L186: case math.IsInf(n, +1):
encode.go#L188: case math.IsInf(n, -1):