Class
Quotient

Divides one number by another and returns the integer portion of the result, discarding the remainder.

Definition

Constructors

Quotient()

Initializes a new QUOTIENT function that returns the integer part of a division without the remainder.

Declaration

cs-api-definition
public Quotient()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

ArgumentConversionRules

Conversion rules specifying that the function converts arguments to numbers but does not accept boolean values.

Declaration

cs-api-definition
public override ArgumentConversionRules ArgumentConversionRules { get; }

Property Value

ArgumentConversionRules

The argument conversion rules as ArgumentConversionRules.

Overrides NumbersInFunction.ArgumentConversionRules

FunctionInfo

Metadata describing the function signature, category, and argument requirements.

Declaration

cs-api-definition
public override FunctionInfo FunctionInfo { get; }

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

The function name "QUOTIENT" as it appears in spreadsheet formulas.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

Methods

EvaluateOverride(FunctionEvaluationContext<double>)

Evaluates the QUOTIENT function and returns the integer portion of the numerator divided by the denominator, checking for division by zero.

Declaration

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)

Parameters

context

FunctionEvaluationContext<double>

The context.

Returns

RadExpression

Functions result as RadExpression.

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