mathutil

package
Version: v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LastNum added in v2.5.2

func LastNum(num, last int64) (int64, error)

LastNum 对 num 进行截断,提取自 last 位置开始的所有数字。错误时返回 -1。

func LastNumRange added in v2.5.2

func LastNumRange(num, last, len int64) (int64, error)

LastNumRange 对 num 进行截断,提取自 last 位置开始的 len 长度个数字。错误时返回 -1。

func RoundToInt

func RoundToInt(f float64) int

func RoundToInt32

func RoundToInt32(f float64) int32

func RoundToInt64

func RoundToInt64(f float64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL