

LIFE() - Optimum service life
| Type
| Field
| Description
|
| double
| dPrice
| Price of asset
|
| double
| dIncrOpExp
| Increase of operating expenses
|
| double
| dIncrMaintExp
| Increase of maintenance expenses
|
PowerBuilder Function declaration
function double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp) library "IFL16.DLL"
Visual Basic Function declaration
Declare Function LIFE lib "IFL16" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double) As Double
C/C++ Synopsis
#include "function.h"
double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp)
32 bit DLL declarations
PowerBuilder Function declaration
function double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp) library "IFL32.DLL"
Visual Basic Function declaration
Declare Function LIFE lib "IFL32" (ByVal dPrice As Double, ByVal dIncrOpExp As Double, ByVal dIncrMaintExp As Double) As Double
C/C++ Synopsis
#include "function.h"
double LIFE(double dPrice, double dIncrOpExp, double dIncrMaintExp)
Example:
| dPrice
| =
| 28,000
|
|
| dIncrOpExp
| =
| 1,500
|
|
| dIncrMaintExp
| =
| 1,200
|
|