public class Finance
extends java.lang.Object
Constructor and Description |
---|
Finance() |
Modifier and Type | Method and Description |
---|---|
static double |
fv(double r, int nper, double c, double pv)
Overloaded fv() call omitting type, which defaults to 0.
(重载的 fv() 调用省略类型,默认为 0。)
|
static double |
fv(double r, int nper, double pmt, double pv, int type)
Emulates Excel/Calc's FV(interest_rate, number_payments, payment, PV, Type) function, which calculates future value or principal at period N.
(模拟 Excel/Calc 的 FV(interest_rate, number_payments, payment, PV, Type) 函数,计算 N 期的未来价值或本金。)
|
static double |
ipmt(double r, int per, int nper, double pv) |
static double |
ipmt(double r, int per, int nper, double pv, double fv) |
static double |
ipmt(double r, int per, int nper, double pv, double fv, int type)
Emulates Excel/Calc's IPMT(interest_rate, period, number_payments, PV, FV, Type) function, which calculates the portion of the payment at a given period that is the interest on previous balance.
(模拟 Excel/Calc 的 IPMT(interest_rate, period, number_payments, PV, FV, Type) 函数,该函数计算给定期间的付款部分,即先前余额的利息。)
|
static double |
pmt(double r, int nper, double pv)
Overloaded pmt() call omitting fv and type, which both default to 0.
(重载的 pmt() 调用省略了 fv 和 type,它们都默认为 0。)
|
static double |
pmt(double r, int nper, double pv, double fv)
Overloaded pmt() call omitting type, which defaults to 0.
(重载的 pmt() 调用省略类型,默认为 0。)
|
static double |
pmt(double r, int nper, double pv, double fv, int type)
Emulates Excel/Calc's PMT(interest_rate, number_payments, PV, FV, Type) function, which calculates the payments for a loan or the future value of an investment
(模拟 Excel/Calc 的 PMT(interest_rate, number_payments, PV, FV, Type) 函数,该函数计算贷款的付款或投资的未来价值)
|
static double |
ppmt(double r, int per, int nper, double pv) |
static double |
ppmt(double r, int per, int nper, double pv, double fv) |
static double |
ppmt(double r, int per, int nper, double pv, double fv, int type)
Emulates Excel/Calc's PPMT(interest_rate, period, number_payments, PV, FV, Type) function, which calculates the portion of the payment at a given period that will apply to principal.
(模拟 Excel/Calc 的 PPMT(interest_rate, period, number_payments, PV, FV, Type) 函数,该函数计算在给定期间适用于本金的付款部分。)
|
public static double pmt(double r, int nper, double pv, double fv, int type)
r
- - periodic interest rate represented as a decimal.
(r - 以小数表示的定期利率。)
nper
- - number of total payments / periods.
(nper - - 总付款数/期数。)
pv
- - present value -- borrowed or invested principal.
(pv - - 现值 - 借入或投资本金。)
fv
- - future value of loan or annuity.
(fv - 贷款或年金的未来价值。)
type
- - when payment is made: beginning of period is 1; end, 0.
(type - - 付款时:期初为 1;结束,0。)
double
representing periodic payment amount.
(double 代表定期付款金额。)
public static double pmt(double r, int nper, double pv, double fv)
pmt(double, int, double, double, int)
public static double pmt(double r, int nper, double pv)
pmt(double, int, double, double, int)
public static double ipmt(double r, int per, int nper, double pv, double fv, int type)
r
- - periodic interest rate represented as a decimal.
(r - 以小数表示的定期利率。)
per
- - period (payment number) to check value at.
(每 - - 期间(付款号)检查价值。)
nper
- - number of total payments / periods.
(nper - - 总付款数/期数。)
pv
- - present value -- borrowed or invested principal.
(pv - - 现值 - 借入或投资本金。)
fv
- - future value of loan or annuity.
(fv - 贷款或年金的未来价值。)
type
- - when payment is made: beginning of period is 1; end, 0.
(type - - 付款时:期初为 1;结束,0。)
double
representing interest portion of payment.
(double 代表支付的利息部分。)
pmt(double, int, double, double, int)
,
fv(double, int, double, double, int)
public static double ipmt(double r, int per, int nper, double pv, double fv)
public static double ipmt(double r, int per, int nper, double pv)
public static double ppmt(double r, int per, int nper, double pv, double fv, int type)
r
- - periodic interest rate represented as a decimal.
(r - 以小数表示的定期利率。)
per
- - period (payment number) to check value at.
(每 - - 期间(付款号)检查价值。)
nper
- - number of total payments / periods.
(nper - - 总付款数/期数。)
pv
- - present value -- borrowed or invested principal.
(pv - - 现值 - 借入或投资本金。)
fv
- - future value of loan or annuity.
(fv - 贷款或年金的未来价值。)
type
- - when payment is made: beginning of period is 1; end, 0.
(type - - 付款时:期初为 1;结束,0。)
double
representing principal portion of payment.
(double 代表付款的本金部分。)
pmt(double, int, double, double, int)
,
ipmt(double, int, int, double, double, int)
public static double ppmt(double r, int per, int nper, double pv, double fv)
public static double ppmt(double r, int per, int nper, double pv)
public static double fv(double r, int nper, double pmt, double pv, int type)
r
- - periodic interest rate represented as a decimal.
(r - 以小数表示的定期利率。)
nper
- - number of total payments / periods.
(nper - - 总付款数/期数。)
pmt
- - periodic payment amount.
(pmt - - 定期付款金额。)
pv
- - present value -- borrowed or invested principal.
(pv - - 现值 - 借入或投资本金。)
type
- - when payment is made: beginning of period is 1; end, 0.
(type - - 付款时:期初为 1;结束,0。)
double
representing future principal value.
(double 代表未来本金价值。)
public static double fv(double r, int nper, double c, double pv)
fv(double, int, double, double, int)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.