mathutil

package
v1.8.55 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(value float64, lower float64, upper float64) float64

func ClampLower

func ClampLower(value float64, lower float64) float64

func ClampUpper

func ClampUpper(value float64, upper float64) float64

func LeadingSignificantZeros added in v1.6.22

func LeadingSignificantZeros(x float64, places int) int

func Round

func Round(x float64) float64

The Golang 1.10 math.Round implementation. (see: https://golang.org/pkg/math/#Round)

func RoundPlaces

func RoundPlaces(x float64, places int) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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