mmath

package
v0.0.0-...-52c4d39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

mabetle math functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Divide

func Divide(a, b float64) float64

FloatDivide

func Round

func Round(val float64, places int) float64

Round(3.1556,2)=3.16 Round(3.1556,0)=3

func RoundDown

func RoundDown(v float64, places int) (r float64)

RoundDown(3.14159,3)=3.141 truncate

func RoundDownInt

func RoundDownInt(v float64) (r int64)

func RoundInt

func RoundInt(v float64) (r int64)

RoundInt(3.15)=3

func RoundUp

func RoundUp(v float64, places int) (r float64)

RoundUp(3.14159, 2)=3.15

func RoundUpInt

func RoundUpInt(v float64) (r int64)

Types

type DivideZeroError

type DivideZeroError struct {
}

func NewDivideZeroError

func NewDivideZeroError() DivideZeroError

func (DivideZeroError) Error

func (e DivideZeroError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL