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