maths

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 1 Imported by: 11

Documentation

Index

Constants

View Source
const MaxI64Value = math.MaxInt64

MaxI64Value is the max value for type int64.

View Source
const MaxIntValue = int(^uint(0) >> 1)

MaxIntValue is the max value for type int. https://groups.google.com/forum/#!msg/golang-nuts/a9PitPAHSSU/ziQw1-QHw3EJ

Variables

This section is empty.

Functions

func AbsI64 added in v0.0.17

func AbsI64(a int64) int64

AbsI64 returns the absolute value of an int64 value.

func AbsInt added in v0.0.17

func AbsInt(a int) int

AbsInt returns the absolute value of an int value.

func MaxI64 added in v0.0.17

func MaxI64(x, y int64) int64

MaxI64 returns the bigger value of the two input int64s.

func MaxInt

func MaxInt(x, y int) int

MaxInt returns the bigger value of the two input ints.

func MinI64 added in v0.0.17

func MinI64(x, y int64) int64

MinI64 returns the smaller value of the two input int64s.

func MinInt

func MinInt(x, y int) int

MinInt returns the smaller value of the two input ints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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