gtbox_number

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTFloat64GetLengthAfter added in v0.0.31

func GTFloat64GetLengthAfter(f float64) int

GTFloat64GetLengthAfter 获取`float64`总位数

func GTFloat64GetLengthBefore added in v0.0.31

func GTFloat64GetLengthBefore(f float64) int

GTFloat64GetLengthBefore 获取`float64`小数点前位数

func GTFloat64GetLengthSegmentLength added in v0.0.31

func GTFloat64GetLengthSegmentLength(f float64) (total, before, after int)

GTFloat64GetLengthSegmentLength 获取`float64`总位数、小数点前位数和小数点后位数

func GTToolsNumberFloat64ToInt64

func GTToolsNumberFloat64ToInt64(num float64, retain int) int64

GTToolsNumberFloat64ToInt64 将float64转成精确的int64

func GetFloat64GetLengthTotal added in v0.0.31

func GetFloat64GetLengthTotal(f float64) int

GetFloat64GetLengthTotal 获取`float64`总位数

Types

This section is empty.

Jump to

Keyboard shortcuts

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