MCPcopy
hub / github.com/montanaflynn/stats / ExampleRound

Function ExampleRound

round_test.go:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func ExampleRound() {
12 rounded, _ := stats.Round(1.534424, 1)
13 fmt.Println(rounded)
14 // Output: 1.5
15}
16
17func TestRound(t *testing.T) {
18 for _, c := range []struct {

Callers

nothing calls this directly

Calls 1

RoundFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…