Documentation ¶
Index ¶
Constants ¶
View Source
const ( EPSILON float64 = 0.01 MONTH = 12 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrincipalInterest ¶
type PrincipalInterest struct {
// contains filtered or unexported fields
}
func NewPrincipalInterest ¶
func NewPrincipalInterest(principal, interestRate float64, periods int) *PrincipalInterest
func (PrincipalInterest) Repayment ¶
func (pi PrincipalInterest) Repayment(period int) float64
Click to show internal directories.
Click to hide internal directories.