Int

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: BSL-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(num int) int

Abs returns the absolute value of an integer

func CountDigits

func CountDigits(num int) (count int)

CountDigits returns the number of digits in a number

func Pow

func Pow(base, exp int) int

Pow calculates base to the expth power. Since the result is an int, it is assumed that exp is a positive power returns 0 if m is negative

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL