New to Telerik Document ProcessingStart a free 30-day trial

Convert

Class

Converts a numeric value from one measurement system to another, supporting conversions between compatible unit types such as distance, weight, temperature, and other measurement categories.

Definition

Constructors

Initializes a new CONVERT function instance for converting numeric values between measurement systems.

C#
public Convert()

Fields

The name of the function.

C#
public static readonly string FunctionName

Methods

Evaluates the conversion function with the provided arguments and returns the converted numeric result or an error expression.

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

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithArguments.EvaluateOverride(FunctionEvaluationContext<object>)

Properties

Rules governing how argument values are interpreted and converted during function evaluation.

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

The argument conversion rules as ArgumentConversionRules.

Overrides: FunctionBase.ArgumentConversionRules

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 "CONVERT" used in formulas.

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

The name as String.

Overrides: FunctionBase.Name