New to Telerik Document Processing? Start a free 30-day trial

IsOdd

Class

Tests whether a number is odd and returns TRUE for odd numbers, FALSE for even numbers.

Definition

Constructors

Initializes a new ISODD function instance for testing whether numbers are odd.

C#
public IsOdd()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets conversion rules that control how arguments are coerced to numbers, excluding booleans.

C#
public override ArgumentConversionRules ArgumentConversionRules { get; }
Property Value:

The argument conversion rules as ArgumentConversionRules.

Overrides: NumbersInFunction.ArgumentConversionRules

Gets metadata describing the function's category, parameters, and localization keys.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the function name identifier used in formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the function by testing if the number modulo 2 is non-zero and returns the boolean result.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)