Documentation ¶
Overview ¶
Package digit Provide digitization tools such as converting numbers to Text uppercase and commonly used strings. link: http://daxie.gjcha.com/
Index ¶
Constants ¶
View Source
const ( UnitSValue = 10 UnitBValue = 100 UnitQValue = 1_000 UnitWValue = 10_000 UnitYValue = 100_000_000 )
Variables ¶
This section is empty.
Functions ¶
func LowerIndex ¶ added in v1.4.0
LowerIndex convert serial number to Chinese digits
func NumberCover ¶ added in v1.4.0
NumberCover convert numbers to Chinese style with definable dictionary
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
Click to show internal directories.
Click to hide internal directories.