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

Sign

Class

Determines the sign of a number and returns 1 for positive, -1 for negative, or 0 for zero.

Definition

Constructors

Initializes a new SIGN function that determines whether a number is positive, negative, or zero.

C#
public Sign()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Metadata describing the function signature, category, and argument requirements.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

The function name "SIGN" as it appears in spreadsheet formulas.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the SIGN function and returns 1, -1, or 0 based on the sign of the input number.

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