MCPcopy
hub / github.com/go-task/task / digits

Function digits

taskfile/snippet.go:181–188  ·  view source on GitHub ↗
(number int)

Source from the content-addressed store, hash-verified

179}
180
181func digits(number int) int {
182 count := 0
183 for number != 0 {
184 number /= 10
185 count += 1
186 }
187 return count
188}

Callers 1

StringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…