...

Package integer

import "k8s.io/utils/integer"
Overview
Index

Overview ▾

func Int32Max

func Int32Max(a, b int32) int32

Int32Max returns the maximum of the params

func Int32Min

func Int32Min(a, b int32) int32

Int32Min returns the minimum of the params

func Int64Max

func Int64Max(a, b int64) int64

Int64Max returns the maximum of the params

func Int64Min

func Int64Min(a, b int64) int64

Int64Min returns the minimum of the params

func IntMax

func IntMax(a, b int) int

IntMax returns the maximum of the params

func IntMin

func IntMin(a, b int) int

IntMin returns the minimum of the params

func RoundToInt32

func RoundToInt32(a float64) int32

RoundToInt32 rounds floats into integer numbers. Deprecated: use math.Round() and a cast directly.