Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClampInt32 ¶
ClampInt32 maps an int into a uint32 ranging from min-int32 to max-int32; anything outside that range is clamped to the extreme it surpassed.
func IntSign ¶
IntSign returns -1, 1, or 0 if n is less than, greater than, or equal to 0 respectively.
func Round ¶
Round ala https://www.cockroachlabs.com/blog/rounding-implementations-in-go/
NOTE: obsolete in Go 1.10 when this finally comes into the "math" package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.