func math.Round
7 uses
math (current package)
floor.go#L64: func Round(x float64) float64 {
github.com/aws/aws-sdk-go/internal/sdkmath
floor.go#L14: return math.Round(x)
github.com/evanw/esbuild/internal/css_parser
css_decls.go#L562: i := int(math.Round(f * 255))
css_decls.go#L600: i = int(math.Round(f * scale))
css_decls.go#L606: i = int(math.Round(f * (255.0 / 100.0)))
golang.org/x/pkgsite/internal/frontend
search.go#L130: unit := math.Pow(10, math.Round(math.Log10(expectedErr)))
search.go#L132: return int(unit * math.Round(float64(estimate)/unit))
![]() |
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. |