Documentation ¶
Overview ¶
Package numcn provides primitives for Interconversion between Chinese numbers & Numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToFloat64 ¶
DecodeToFloat64 : decode a chinese number string into Float64
func DecodeToInt64 ¶
DecodeToInt64 : decode a chinese number string into Int64
func EncodeFromFloat64 ¶
EncodeFromFloat64 : convert float64 into Chinese number 由于float64固然存在的精度问题,本函数可能不会特别精准。所以小数部分最多精确到6位。
func EncodeFromInt64 ¶
EncodeFromInt64 : convert int64 into Chinese number
func MustDecodeToFloat64 ¶
MustDecodeToFloat64 : decode a chinese number string into Float64 without error
func MustDecodeToInt64 ¶
MustDecodeToInt64 : decode a chinese number string into Int64 without error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.