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

Round

Class

Rounds a number to a specified number of decimal places using standard rounding rules (0.5 rounds up).

Definition

Constructors

Initializes a new ROUND function that rounds numbers to a specified precision.

C#
public Round()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

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

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

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

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the ROUND function and returns the number rounded to the specified number of decimal places.

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