MCPcopy
hub / github.com/shopspring/decimal / Less

Method Less

decimal_bench_test.go:17–17  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

15func (p DecimalSlice) Len() int { return len(p) }
16func (p DecimalSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
17func (p DecimalSlice) Less(i, j int) bool { return p[i].Cmp(p[j]) < 0 }
18
19func BenchmarkNewFromFloatWithExponent(b *testing.B) {
20 rng := rand.New(rand.NewSource(0xdead1337))

Callers

nothing calls this directly

Calls 1

CmpMethod · 0.80

Tested by

no test coverage detected