New to Telerik Document ProcessingStart a free 30-day trial

Dec2Bin

Class

Converts a decimal integer to its binary representation, optionally padding to a specified number of characters, with support for signed 10-bit values.

Definition

Constructors

Initializes a new DEC2BIN function instance for decimal to binary conversion.

C#
public Dec2Bin()

Fields

The name of the function.

C#
public static readonly string FunctionName

Methods

Evaluates the decimal to binary conversion and returns the binary string result or an error expression if the number or places value is invalid.

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

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: NumbersInFunction.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 "DEC2BIN" used in formulas.

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

The name as String.

Overrides: FunctionBase.Name