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

N

Class

Implements the N function, which converts a value to a number, returning numeric values directly and 0 for other types.

Definition

Constructors

Initializes a new N function instance for converting values to numeric representation.

C#
public N()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets the rules controlling how arguments are converted before evaluation.

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

The argument conversion rules as ArgumentConversionRules.

Overrides: NumbersInFunction.ArgumentConversionRules

Gets metadata describing the function's category, description, and argument structure.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the function name "N" used in formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the function by converting the argument to a number and returning a valid numeric expression or error.

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>)