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

Trunc

Class

Implements the TRUNC function, which truncates a number to a specified precision by removing fractional digits.

Definition

Constructors

Initializes a new instance of the TRUNC function.

C#
public Trunc()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets the function info.

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

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the name of the function.

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

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the TRUNC function and returns the truncated number.

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