MCPcopy Create free account
hub / github.com/corestoreio/pkg / IsNatural

Function IsNatural

util/validation/numerics.go:95–97  ·  view source on GitHub ↗

IsNatural returns true if value is natural number (positive and whole)

(value float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestIsNaturalFunction · 0.85

Calls 2

IsWholeFunction · 0.85
IsPositiveFunction · 0.85

Tested by 1

TestIsNaturalFunction · 0.68