0 out of 1 rated this helpful - Rate this topic

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;
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ