utilsk8s.io/utils/integer Index | Files

package integer

import "k8s.io/utils/integer"

Index

Functions

func Int32Max

func Int32Max(a, b int32) int32

Int32Max returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.

func Int32Min

func Int32Min(a, b int32) int32

Int32Min returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.

func Int64Max

func Int64Max(a, b int64) int64

Int64Max returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.

func Int64Min

func Int64Min(a, b int64) int64

Int64Min returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.

func IntMax

func IntMax(a, b int) int

IntMax returns the maximum of the params. Deprecated: for new code, use the max() builtin instead.

func IntMin

func IntMin(a, b int) int

IntMin returns the minimum of the params. Deprecated: for new code, use the min() builtin instead.

func RoundToInt32

func RoundToInt32(a float64) int32

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.