num2cn

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CN2Float64

func CN2Float64(cn string) (float64, error)

CN2Float64 : decode a chinese number string into Float64

func CN2Int64

func CN2Int64(cn string) (int64, error)

CN2Int64 : decode a chinese number string into Int64

func Float64ToCN

func Float64ToCN(num float64) string

Float64ToCN : convert float64 into Chinese number 由于float64固然存在的精度问题,本函数可能不会特别精准。所以小数部分最多精确到6位。

func Int64ToCN

func Int64ToCN(num int64) string

Int64ToCN : convert int64 into Chinese number

func MustDecodeToFloat64

func MustDecodeToFloat64(cn string) float64

MustDecodeToFloat64 : decode a chinese number string into Float64 without error

func MustZHToInt64

func MustZHToInt64(cn string) int64

MustZHToInt64 : decode a chinese number string into Int64 without error

Types

This section is empty.

Jump to

Keyboard shortcuts

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