IsOdd
Tests whether a number is odd and returns TRUE for odd numbers, FALSE for even numbers.
Definition
Namespace:Telerik.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class IsOdd : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionIsOdd...
Inherited Members
Constructors
Initializes a new ISODD function instance for testing whether numbers are odd.
public IsOdd()
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 is non-zero and returns the boolean result.
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
The context.
Returns:Functions result as RadExpression.
Overrides: