mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-09 04:46:48 +08:00
10 lines
220 B
Go
10 lines
220 B
Go
package payment
|
|
|
|
func YuanToFen(yuanStr string) (int64, error) {
|
|
return AmountToMinorUnit(yuanStr, DefaultPaymentCurrency)
|
|
}
|
|
|
|
func FenToYuan(fen int64) float64 {
|
|
return MinorUnitToAmount(fen, DefaultPaymentCurrency)
|
|
}
|