|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.formula.function.builtin.Investment
public final class Investment
invest(principal, interest-rate, years, times-per-year): compound interest on an investment.
Constructor Summary | |
---|---|
Investment()
|
Method Summary | |
---|---|
Decimal |
calculate(Decimal... aArgs)
Returns the final value of a principal amount invested at a given interest rate, and over a given number of years. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Investment()
Method Detail |
---|
public Decimal calculate(Decimal... aArgs)
There are 4 arguments to this method (in this order):
Example:
Then
invest(100, 0.05, 2, 1) = 110.25
calculate
in interface Function
aArgs
- 0 or more arguments to the function.
|
Formula 1.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |