//
pkg.gl
Category
github.com/QuantumShiftX/golib
currency
package
0.0.0-20250220022732-e4c125a5ade9
Repository:
https://github.com/quantumshiftx/golib.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
52 SLOC
#
Functions
FromFloat64
FromFloat64 从浮点数创建货币单位.
#
Constants
Fen
1分 = 10,000 微元.
Jiao
1角 = 100,000 微元.
Li
1厘 = 1,000 微元.
Mao
1毫 = 100 微元.
OneUnit
1元 = 1,000,000 微元(精度6位小数).
Si
1丝 = 10 微元.
UnitFen
分.
UnitJiao
角.
UnitLi
厘.
UnitMao
毫.
UnitSi
丝.
UnitYuan
元.
Yuan
1元 = 1,000,000 微元.
#
Type aliases
CurrencyUnit
CurrencyUnit 货币单位类型.
Unit
Unit 货币单位.