System.Math.SLNDepreciation

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SLNDepreciation(const Cost, Salvage: Extended; Life: Integer): Extended;

C++

extern DELPHI_PACKAGE System::Extended __fastcall SLNDepreciation(const System::Extended Cost, const System::Extended Salvage, int Life);

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Returns the straight-line depreciation allowance of an asset.

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.

See Also