mathx

package
v0.0.0-...-00782a2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dim

func Dim[N constraints.Integer | constraints.Float](x, y N) N

Dim returns the maximum of x-y or 0.

func Max

func Max[N constraints.Integer | constraints.Float](x, y N) N

func Min

func Min[N constraints.Integer | constraints.Float](x, y N) N

func Round

func Round(val float64, precision int64) (newVal float64)

Round rounds the given float64 value and ensures that it has a maximum of "precision" decimal places.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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