跳到主要内容

EFFECT

Returns the effective annual interest rate.

Syntax

expression.EFFECT(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe nominal interest rate.
arg2RequiredApiRange | ApiName | numberThe number of compounding periods per year.

Returns

number

Example

This example shows how to return the effective annual interest rate.

// How to get an effective annual interest rate.

// Use function to get effective annual interest rate.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.EFFECT(0.57, 4));