Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ModuleName is the prefix given to all the functions in this module.
ModuleName = "math"
)
Variables ¶
This section is empty.
Functions ¶
func Mod ¶
Mod returns mod(x, y), the remainder of x/y. The two values must be either both of KindInt or both of KindFloat, and it will return the same kind. If you pass in a divisor of zero, this will error, eg: mod(x, 0) = NaN. TODO: consider returning zero instead of erroring?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.