

VDB() - Variable declining balance
| Type
| Field
| Description
|
| double
| dCost
| Cost of asset
|
| double
| dSalvage
| Salvage value of asset
|
| double
| dLife
| Life expectancy of asset
|
| integer
| iPeriod
| Depreciation period
|
| double
| dFactor
| Depreciation factor
|
PowerBuilder Function declaration
function double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor) library "IFL16.DLL"
Visual Basic Function declaration
Declare Function VDB lib "IFL16" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double, ByVal iPeriod As Integer, ByVal dFactor as Double) As Double
C/C++ Synopsis
#include "function.h"
double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor)
32 bit DLL declarations
PowerBuilder Function declaration
function double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor) library "IFL32.DLL"
Visual Basic Function declaration
Declare Function VDB lib "IFL32" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double, ByVal iPeriod As Integer, ByVal dFactor as Double) As Double
C/C++ Synopsis
#include "function.h"
double VDB(double dCost, double dSalvage, double dLife, short sPeriod, double dFactor)
Example:
| dCost
| =
| 10,000
|
|
| dSalvage
| =
| 600
|
|
| dLife
| =
| 10
|
|
| iPeriod
| =
| 5
|
|
| dFactor
| =
| 1.5
| (150%)
|