contents.gifprev1.gifnext1.gif

LINK1() - Link interest rates

Calculates the periodic interest rate over a number of compounding periods.

Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dInt[]
Interest percentages
integer
sNumber
Number of periods
16-bit DLL declarations

PowerBuilder Function declaration

function double LINK1(double dInt[], int sNumber) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function LINK1 lib "IFL16" (ByVal dInt[] As Double, ByVal sNumber As Integer) As Double

Access Function declaration

Declare Function LINK1 lib "IFL16" (dInt As Any, ByVal sNumber As Integer) As Double

C/C++ Synopsis

#include "function.h"

double LINK1(double *dInt, int sNumber)

32-bit DLL declarations

PowerBuilder Function declaration

function double LINK1(double dInt[], int sNumber) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function LINK1 lib "IFL32" (ByRef dInt As Double, ByVal sNumber As Integer) As Double

Access Function declaration

Declare Function LINK1 lib "IFL32" (dInt As Any, ByVal sNumber As Integer) As Double

C/C++ Synopsis

#include "function.h"

double LINK1(double *dInt, short sNumber)

Example:

dInt[1]
=
0.02
(2%)
dInt[2]
=
0.023
(2.3%)
dInt[3]
=
0.015
(1.5%)
dInt[4]
=
0.06
(6%)
sNumber
=
4

Result: 0.1226 (12.26%)