amount

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountInterestByAnnualizedRate

func CountInterestByAnnualizedRate(capital, rate float64, dateDiff, decimals int) float64

利息罚息计算(通过年化利率计算) 本金-capital 年化利率-rate 计息天数-dateDiff 保留位数-decimals 单位-分

func FenToYuan

func FenToYuan(a int64) float64

FenToYuan from fen to yuan

func Float64ToInt64

func Float64ToInt64(f float64, decimal int) int64

convert floa64 to int64

func Int64ToFloat64

func Int64ToFloat64(n int64, decimal int) float64

convert int64 to float64

func Round

func Round(v float64, decimals int) float64

Round 四舍五入

func YuanToFen

func YuanToFen(a float64) int64

YuanToFen from yun to fen

Types

This section is empty.

Jump to

Keyboard shortcuts

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