compound | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Returns the principal plus accrued interest of an investment. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Control Structure: function Glossary: return, math operation Function: annuity, round | |||||||||
Description | Use the compound function to calculate the value of an investment that earns interest. The formula for the value of an compound-interest-bearing account is
The compound function calculates this value. The numberOfPeriods and the interestRate must use the same unit of time. For example, if the periods are months, the interestRate is the interest per month. If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information. | |||||||||
Tags | math |