xmath

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ceil

func Ceil(f float64, n ...int) float64

Ceil rounds f up to n decimal places. When n is omitted it defaults to 0.

func Floor

func Floor(f float64, n ...int) float64

Floor rounds f down to n decimal places. When n is omitted it defaults to 0.

func Round

func Round(f float64, n ...int) float64

Round rounds f to n decimal places, using the "round half away from zero" rule, so that Round(-2.5) returns -3. When n is omitted it defaults to 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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