numberutils

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBits added in v0.0.10

func FormatBits(bits int64) string

func FormatBytes added in v0.0.9

func FormatBytes(bytes int64) string

func FormatCount added in v0.4.0

func FormatCount(count int64) string

func FormatFloat added in v0.4.7

func FormatFloat(f any, decimal int) string

func FormatFloat2 added in v0.4.7

func FormatFloat2(f any) string

func FormatInt

func FormatInt(value int) string

func FormatInt64

func FormatInt64(value int64) string

func PadFloatZero added in v1.0.4

func PadFloatZero(s string, countZero int) string

PadFloatZero 为浮点型数字字符串填充足够的0

func Pow1024 added in v0.3.7

func Pow1024(n int) int64

func TrimZeroSuffix added in v0.5.6

func TrimZeroSuffix(s string) string

TrimZeroSuffix 去除小数数字尾部多余的0

Types

This section is empty.

Jump to

Keyboard shortcuts

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