Documentation ¶
Overview ¶
mabetle math functions.
Index ¶
- func Divide(a, b float64) float64
- func Round(val float64, places int) float64
- func RoundDown(v float64, places int) (r float64)
- func RoundDownInt(v float64) (r int64)
- func RoundInt(v float64) (r int64)
- func RoundUp(v float64, places int) (r float64)
- func RoundUpInt(v float64) (r int64)
- type DivideZeroError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoundDownInt ¶
func RoundUpInt ¶
Types ¶
type DivideZeroError ¶
type DivideZeroError struct { }
func NewDivideZeroError ¶
func NewDivideZeroError() DivideZeroError
func (DivideZeroError) Error ¶
func (e DivideZeroError) Error() string
Click to show internal directories.
Click to hide internal directories.