ClassDec2Bin
Converts a decimal integer to its binary representation, optionally padding to a specified number of characters, with support for signed 10-bit values.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Dec2Bin : NumbersInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<double>NumbersInFunctionDec2Bin
Inherited Members
Constructors
Dec2Bin()
Initializes a new DEC2BIN function instance for decimal to binary conversion.
Declaration
public Dec2Bin()
Fields
FunctionName
The name of the function.
Properties
ArgumentConversionRules
Rules governing how argument values are interpreted and converted during function evaluation.
Declaration
public override ArgumentConversionRules ArgumentConversionRules { get; }
Property Value
The argument conversion rules as ArgumentConversionRules.
Overrides
FunctionInfo
Metadata describing the function signature, category, and argument requirements.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
The function info as FunctionInfo.
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<double>)
Evaluates the decimal to binary conversion and returns the binary string result or an error expression if the number or places value is invalid.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters
context
FunctionEvaluationContext<double>
The context.
Returns
Functions result as RadExpression.
Overrides