RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.SLNDepreciation Function

Returns the straight-line depreciation allowance of an asset.

Pascal
function SLNDepreciation(const Cost: Extended; const Salvage: Extended; Life: Integer): Extended;
C++
Extended SLNDepreciation(const Extended Cost, const Extended Salvage, int Life);

Math

SLNDepreciation calculates the straight-line depreciation allowance for an asset over one period of its life. The function divides the Cost minus the Salvage by the number of years of useful Life of the asset. Cost is the amount initially paid for the asset. Salvage is the value of the asset at the end of its useful life.  

To compute accelerated depreciation (allowing higher depreciation values in the first years of the assets life), use the SYDDepreciation function. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!