Documentation ¶
Overview ¶
Package ix contains small integer arithmetic functions in the style of the standard `math` package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilDiv ¶
func CeilDiv[T integer](a, b T) T
CeilDiv returns the result of the integer division a / b except rounded up (for nonnegative integers).
func GCD ¶
func GCD[T integer](a, b T) T
GCD returns the greatest common divisor of the two arguments.
func LCM ¶
func LCM[T integer](a, b T) T
LCM returns the least common multiple of the two arguments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.