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

Interface Float

constraints/constraints.go:23–25  ·  view source on GitHub ↗

Float is a generic type constraint for all floating point types.

Source from the content-addressed store, hash-verified

21
22// Float is a generic type constraint for all floating point types.
23type Float interface {
24 ~float32 | ~float64
25}
26
27// Number is a generic type constraint for all numeric types in Go except Complex types.
28type Number interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected