跳到主要内容

CUMPRINC

返回两个期间之间支付的贷款累积本金。

语法

expression.CUMPRINC(arg1, arg2, arg3, arg4, arg5, arg6);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number投资的利率。
arg2必需ApiRange | ApiName | number付款期总数。
arg3必需ApiRange | ApiName | number付款的现值。
arg4必需ApiRange | ApiName | number计算中包含的第一期。
arg5必需ApiRange | ApiName | number计算中包含的最后一期。
arg6必需ApiRange | ApiName | number付款时间。

返回值

number

示例

此示例演示如何获取两个期间之间贷款支付的累计本金。

// How to return the cumulative principal paid on a loan between two periods.

// Use function to get the cumulative principal paid on a loan between two periods.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.CUMPRINC(0.1/12, 2*12, 2000, 1, 24, 0));