MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Number

Interface Number

constraints/constraints.go:28–30  ·  view source on GitHub ↗

Number is a generic type constraint for all numeric types in Go except Complex types.

Source from the content-addressed store, hash-verified

26
27// Number is a generic type constraint for all numeric types in Go except Complex types.
28type Number interface {
29 Integer | Float
30}
31
32// Ordered is a generic type constraint for all ordered data types in Go.
33// Loosely speaking, in mathematics a field is an ordered field if there is a "total

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected