xmath

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsInt

func AbsInt(x int) int

AbsInt returns the absolute value of integer x. Note that when x is math.MinInt32 (or -2147483648), the same negative value is returned since there is no 'signed' int 2147483648.

func AbsInt64

func AbsInt64(x int64) int64

AbsInt64 returns the absolute value of 64-bit integer x. Note that when x is math.MinInt (or -9223372036854775808), the same negative value is returned since there is no 'signed' int64 9223372036854775808.

Types

This section is empty.

Jump to

Keyboard shortcuts

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