Documentation
¶
Overview ¶
Package mathutil provides mathematical utility functions and type conversions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeUint64ToInt ¶
SafeUint64ToInt converts uint64 to int with overflow checking. On overflow, returns the maximum int value and an error.
func SafeUint64ToInt64 ¶
SafeUint64ToInt64 converts uint64 to int64 with overflow checking. On overflow, returns the maximum int64 value and an error.
func Uint64ToInt ¶
Uint64ToInt converts uint64 to int, clamping to max int on overflow. This is safe for display/formatting purposes where exact value isn't critical.
func Uint64ToInt64 ¶
Uint64ToInt64 converts uint64 to int64, clamping to max int64 on overflow. This is safe for display/formatting purposes where exact value isn't critical.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.