mathx

package
v0.0.0-...-e130382 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 1

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