contents.gifprev1.gifnext1.gif

SLN() - Straight line

Calculates the straight-line depreciation.

Returns

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

Arguments

Type
Field
Description
double
dCost
Cost of asset
double
dSalvage
Salvage value of asset
double
dLife
Life expectancy of asset
16 bit DLL declarations

PowerBuilder Function declaration

function double SLN(double dCost, double dSalvage, double dLife) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function SLN lib "IFL16" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double) As Double

C/C++ Synopsis

#include "function.h"

double SLN(double dCost, double dSalvage, double dLife)

32 bit DLL declarations

PowerBuilder Function declaration

function double SLN(double dCost, double dSalvage, double dLife) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function SLN lib "IFL32" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double) As Double

C/C++ Synopsis

#include "function.h"

double SLN(double dCost, double dSalvage, double dLife)

Example:

dCost
=
10,000

dSalvage
=
1,200

dLife
=
10

Result: $ 880.00