finance.cagr
Calculate compound annual growth rate (CAGR) from beginning and ending values over a number of periods, returning a rounded decimal result for financial growth analysis.
Instructions
복합연평균성장률(CAGR)을 계산한다. CAGR = (ending_value / beginning_value)^(1 / periods) - 1. beginning_value 는 0보다 크고 ending_value 는 0 이상인 Decimal 문자열, periods 는 1 이상 정수다. 결과는 배수(0.1 = 10%)이며 decimals(기본 6)자리로 rounding(기본 HALF_EVEN) 처리한다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | ||
| decimals | No | ||
| rounding | No | HALF_EVEN | |
| ending_value | Yes | ||
| beginning_value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cagr | Yes | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) |