IsEven
Tests whether a number is even and returns TRUE for even numbers, FALSE for odd numbers.
Definition
Namespace:Telerik.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class IsEven : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionIsEven...
Inherited Members
Constructors
Initializes a new ISEVEN function instance for testing whether numbers are even.
public IsEven()
Fields
The name of the function.
public static readonly string FunctionName
Properties
Gets conversion rules that control how arguments are coerced to numbers, excluding booleans.
public override ArgumentConversionRules ArgumentConversionRules { get; }
The argument conversion rules as ArgumentConversionRules.
Overrides:
Gets metadata describing the function's category, parameters, and localization keys.
public override FunctionInfo FunctionInfo { get; }
The function info as FunctionInfo.
Overrides:
Methods
Evaluates the function by testing if the number modulo 2 equals 0 and returns the boolean result.
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
The context.
Returns:Functions result as RadExpression.
Overrides: