Registry / utility / mathutil

mathutil

JSON →
library1.7.1gogounverified

Package mathutil provides utilities supplementing the standard math and math/rand packages, including overflow detection and nullable value functions.

utility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

modernc.org/mathutil

Use mathutil to find the maximum of several integers.

package main import ( "fmt" "modernc.org/mathutil" ) func main() { max := mathutil.Max(3, 7, 2) fmt.Println(max) // 7 }
Debug
Known footguns
breakingSome functions were removed or deprecated in early versions (2012-2013); check the changelog for compatibility.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources