Returns the depreciation of an asset using the straight line method.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Sln( double cost, double salvage, int life ) |
Visual Basic (Declaration) |
---|
Public Shared Function Sln ( _ cost As Double, _ salvage As Double, _ life As Integer _ ) As Double |
Visual C++ |
---|
public: static double Sln( double cost, double salvage, int life ) |
Parameters
- cost
- Type: System..::.Double
A double which specifies the initial cost of the asset.
- salvage
- Type: System..::.Double
A double which specifies the salvage value of the asset.
- life
- Type: System..::.Int32
A int which specifies the number of periods over which the asset is being depreciated.
Return Value
A double which specifies the straight line depreciation of an asset for one period.
Remarks
It is computed using the following:

