func math.Abs
29 uses
math (current package)
abs.go#L12: func Abs(x float64) float64 {
bits.go#L58: if Abs(x) < SmallestNormal {
gamma.go#L144: q := Abs(x)
gamma.go#L168: absz := Abs(z)
hypot.go#L29: p, q = Abs(p), Abs(q)
j0.go#L102: x = Abs(x)
jn.go#L198: tmp = tmp * Log(Abs(v*tmp))
lgamma.go#L224: nadj = Log(Pi / Abs(t*x))
log1p.go#L125: absx := Abs(x)
mod.go#L27: y = Abs(y)
pow.go#L65: case (Abs(x) < 1) == IsInf(y, 1):
pow.go#L86: yi, yf := Modf(Abs(y))
pow.go#L96: case (Abs(x) < 1) == (y > 0):
sin.go#L133: x = Abs(x)
sinh.go#L75: x = Abs(x)
tanh.go#L78: z := Abs(x)
encoding/json
encode.go#L587: abs := math.Abs(f)
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L9572: i = int32(uint32(math.Mod(math.Abs(f), 4294967296)))
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1877: absValue := math.Abs(value)
github.com/google/go-cmp/cmp/cmpopts
equate.go#L68: relMarg := a.frac * math.Min(math.Abs(x), math.Abs(y))
equate.go#L69: return math.Abs(x-y) <= math.Max(a.marg, relMarg)
github.com/jmespath/go-jmespath
functions.go#L406: return math.Abs(num), nil
github.com/sergi/go-diff/diffmatchpatch
match.go#L130: proximity := math.Abs(float64(loc - x))
golang.org/x/pkgsite/internal/postgres
search.go#L881: fracDiff := math.Abs(float64(new-old)) / float64(old)
golang.org/x/pkgsite/internal/testing/sample
sample.go#L163: return math.Abs(a-b) <= 4
google.golang.org/protobuf/internal/encoding/json
encode.go#L159: if abs := math.Abs(n); abs != 0 {
testing
benchmark.go#L458: switch y := math.Abs(x); {
![]() |
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. |