decimal

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AmountPrecision = 2 // 金额精度 保留2位小数
)

Functions

func Add

func Add(a, b float64) float64

func Div

func Div(a, b float64) float64

func Equal

func Equal(a, b float64) bool

func Mul

func Mul(a, b float64) float64

func Round

func Round(val float64, precision int) float64

func Sub

func Sub(a, b float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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