math_utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckContext

func CheckContext(ctx context.Context, maxDepth int) error

func DecRecursionDepth

func DecRecursionDepth()

func GetGoroutineID

func GetGoroutineID() uint64

func GetShard

func GetShard(id uint64) *depthShard

func IncRecursionDepth

func IncRecursionDepth() int

func IsAlpha

func IsAlpha(c byte) bool

IsAlpha 判断字符是否是字母

func IsDigit

func IsDigit(c byte) bool

IsDigit 判断字符是否是数字

func IsIdentifierChar

func IsIdentifierChar(c byte) bool

IsIdentifierChar 判断字符是否是标识符字符

func SetPrecision

func SetPrecision(d decimal.Decimal, precision int32, mode math_config.PrecisionMode) decimal.Decimal

SetPrecision 根据精度设置方式应用精度控制

Types

This section is empty.

Jump to

Keyboard shortcuts

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