Class
RoundDown

Rounds a number down toward zero to a specified number of decimal places, truncating rather than rounding up.

Definition

Constructors

RoundDown()

Initializes a new ROUNDDOWN function that rounds numbers down toward zero.

Declaration

cs-api-definition
public RoundDown()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

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 "ROUNDDOWN" 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 ROUNDDOWN function and returns the number rounded down toward zero to the specified decimal places.

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>)