Documentation ¶
Overview ¶
Package digit Provide digitization tools such as converting numbers to Chinese uppercase and commonly used strings. link: http://daxie.gjcha.com/
Index ¶
Constants ¶
const UnitBValue = 100
const UnitLowerB = "百"
UnitLowerB Equivalent data unit 100
const UnitLowerQ = "千"
UnitLowerQ Equivalent data unit 1,000
const UnitLowerS = "十"
UnitLowerS Equivalent data unit 10
const UnitLowerW = "万"
UnitLowerW Equivalent data unit 10,000
const UnitLowerY = "亿"
UnitLowerY Equivalent data unit 10,000,000
const UnitQValue = 1_000
const UnitSValue = 10
const UnitUpperB = "佰"
UnitUpperB Equivalent data unit 100
const UnitUpperQ = "仟"
UnitUpperQ Equivalent data unit 1,000
const UnitUpperS = "拾"
UnitUpperS Equivalent data unit 10
const UnitUpperW = "万"
UnitUpperW Equivalent data unit 10,000
const UnitUpperY = "亿"
UnitUpperY Equivalent data unit 10,000,000
const UnitWValue = 10_000
const UnitYValue = 100_000_000
Variables ¶
This section is empty.
Functions ¶
func NumberCoverChnDigit ¶
NumberCoverChnDigit Arabic numerals to Chinese numerals, supporting uppercase and lowercase
func NumberCoverRmb ¶
NumberCoverRmb Transforming Numbers into People's Digital Writing
Types ¶
type Cover ¶
type Cover float64
func (Cover) ToChnRoundLower ¶
func (Cover) ToChnRoundUpper ¶
func (Cover) ToChnUpper ¶
func (c Cover) ToChnUpper()
ToChnUpper Convert to uppercase Chinese numerals
func (Cover) ToRmbLower ¶
func (Cover) ToRmbUpper ¶
Notes ¶
Bugs ¶
NumberCoverRmb 6.01 -> math.Modf frac is inaccurate.link: https://github.com/golang/go/issues/62232