math

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp(x, min, max float64) float64

func CountLeadingZeroDecimals

func CountLeadingZeroDecimals(f float64) int

func Equal

func Equal(f1, f2 Float64) bool

func EqualWithEpsilon

func EqualWithEpsilon(f1, f2 Float64, epsilon Float64) bool

func IsInf

func IsInf(f Float64, sign int) bool

func IsNaN

func IsNaN(f Float64) bool

func IsReal

func IsReal(f Float64) bool

Types

type Float64

type Float64 float64

func Abs

func Abs(f Float64) Float64

func Inf

func Inf(sign int) Float64

func NaN

func NaN() Float64

func (Float64) MarshalJSON

func (f Float64) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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