ClassSign
Determines the sign of a number and returns 1 for positive, -1 for negative, or 0 for zero.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Sign : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionSign
Inherited Members
Constructors
Sign()
Initializes a new SIGN function that determines whether a number is positive, negative, or zero.
Declaration
public Sign()
Fields
FunctionName
The name of the function.
Properties
FunctionInfo
Metadata describing the function signature, category, and argument requirements.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
The function info as FunctionInfo.
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<double>)
Evaluates the SIGN function and returns 1, -1, or 0 based on the sign of the input number.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters
context
FunctionEvaluationContext<double>
The context.
Returns
Functions result as RadExpression.
Overrides