Sign
Class
Determines the sign of a number and returns 1 for positive, -1 for negative, or 0 for zero.
Definition
Namespace:Telerik.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
C#
public class Sign : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionSign...
Inherited Members
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; }
The function info as FunctionInfo.
Overrides:
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)
The context.
Returns:Functions result as RadExpression.
Overrides: