mathutils

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloatNBit

func GetFloatNBit(source float64, n int32) float64

取float小数点后N位

func RandGroup

func RandGroup(p ...uint32) int

func RandInterval

func RandInterval(b1, b2 int32) int32

* return contain [b1,b2]

func RandInterval64

func RandInterval64(b1, b2 int64) int64

func RandIntervalN

func RandIntervalN(b1, b2 int32, n uint32) []int32

func Round added in v1.0.7

func Round(val float64, precision int) float64

Round 四舍五入,ROUND_HALF_UP 模式实现 返回将 val 根据指定精度 precision(十进制小数点后数字的数目)进行四舍五入的结果。 precision 也可以是负数或零。

Types

This section is empty.

Jump to

Keyboard shortcuts

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