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 FortyTwo ¶
FortyTwo returns 42 as either an int or a float. This is not especially useful, but was built for a fun test case of a simple poly function with two different return types, but no input args.
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.