Documentation
¶
Overview ¶
Package math contains helpers for basic numeric calculations and probability-based utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChanceOf ¶
ChanceOf returns true with the given probability (0.0 to 1.0). It uses crypto/rand to ensure a uniform distribution.
func FormatNumber ¶
FormatNumber converts a floating point number to a human friendly string. It removes trailing zeros and omits a decimal point for whole numbers. A nil pointer results in an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.