package integer
import "k8s.io/utils/integer"
Index ¶
- func Int32Max(a, b int32) int32
- func Int32Min(a, b int32) int32
- func Int64Max(a, b int64) int64
- func Int64Min(a, b int64) int64
- func IntMax(a, b int) int
- func IntMin(a, b int) int
- func RoundToInt32(a float64) int32
Functions ¶
func Int32Max ¶
Int32Max returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.
func Int32Min ¶
Int32Min returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.
func Int64Max ¶
Int64Max returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.
func Int64Min ¶
Int64Min returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.
func IntMax ¶
IntMax returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.
func IntMin ¶
IntMin returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.
func RoundToInt32 ¶
RoundToInt32 rounds floats into integer numbers. Deprecated: use math.Round() and a cast directly.
Source Files ¶
integer.go
- Version
- v0.0.0-20250321185631-1f6e0b77f77e (latest)
- Published
- Mar 21, 2025
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 4 weeks ago –
Tools for package owners.