sln Function

Retrieves the constant depreciation amount for the specified asset for each depreciation period.


real sln(real price, real scrap, real life)

Parameter

Description

price

The purchase price of the asset.

scrap

The scrap value of the asset.

life

The number of periods in the expected life of the asset.

The depreciation amount.

static void slnExample(Args _arg)
{
    real r;
    ;
    r = sln(100.00, 50.00, 50.00);
    print r;
    pause;
}

Community Additions

ADD
Show: