digit

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

View Source
const UnitBValue = 100
View Source
const UnitLowerB = "百"

UnitLowerB Equivalent data unit 100

View Source
const UnitLowerQ = "千"

UnitLowerQ Equivalent data unit 1,000

View Source
const UnitLowerS = "十"

UnitLowerS Equivalent data unit 10

View Source
const UnitLowerW = "万"

UnitLowerW Equivalent data unit 10,000

View Source
const UnitLowerY = "亿"

UnitLowerY Equivalent data unit 10,000,000

View Source
const UnitQValue = 1_000
View Source
const UnitSValue = 10
View Source
const UnitUpperB = "佰"

UnitUpperB Equivalent data unit 100

View Source
const UnitUpperQ = "仟"

UnitUpperQ Equivalent data unit 1,000

View Source
const UnitUpperS = "拾"

UnitUpperS Equivalent data unit 10

View Source
const UnitUpperW = "万"

UnitUpperW Equivalent data unit 10,000

View Source
const UnitUpperY = "亿"

UnitUpperY Equivalent data unit 10,000,000

View Source
const UnitWValue = 10_000
View Source
const UnitYValue = 100_000_000

Variables

This section is empty.

Functions

func NumberCoverChnDigit

func NumberCoverChnDigit(latest float64, isUpperDef ...bool) string

NumberCoverChnDigit Arabic numerals to Chinese numerals, supporting uppercase and lowercase

func NumberCoverRmb

func NumberCoverRmb(amount float64, isUpperDef ...bool) string

NumberCoverRmb Transforming Numbers into People's Digital Writing

Types

type Cover

type Cover float64

func (Cover) ToChnRoundLower

func (c Cover) ToChnRoundLower() string

func (Cover) ToChnRoundUpper

func (c Cover) ToChnRoundUpper() string

func (Cover) ToChnUpper

func (c Cover) ToChnUpper()

ToChnUpper Convert to uppercase Chinese numerals

func (Cover) ToRmbLower

func (c Cover) ToRmbLower() string

func (Cover) ToRmbUpper

func (c Cover) ToRmbUpper() string

Notes

Bugs

Jump to

Keyboard shortcuts

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