New to Telerik Document Processing? Start a free 30-day trial

Npv

Class

Calculates the net present value of an investment using a discount rate and a series of future cash flows.

Definition

Constructors

Initializes a new NPV function instance for calculating net present value from discounted cash flows.

C#
public Npv()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing this function's signature, category, and arguments.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name used in formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the net present value using the discount rate and value arguments, returning the result or an error expression.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)