mathutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverflowFloat

func OverflowFloat[T ~float32 | ~float64](v float64) bool

OverflowFloat checks whether a float64 value exceeds the bounds of the target float type T.

func OverflowInt

func OverflowInt[T ~int | ~int8 | ~int16 | ~int32 | ~int64](v int64) bool

OverflowInt checks whether an int64 value exceeds the bounds of the target integer type T.

func OverflowUint

func OverflowUint[T ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64](v uint64) bool

OverflowUint checks whether a uint64 value exceeds the bounds of the target unsigned type T.

Types

This section is empty.

Jump to

Keyboard shortcuts

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