Class
Dec2Hex

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

Definition

Constructors

Dec2Hex()

Initializes a new DEC2HEX function instance for decimal to hexadecimal conversion.

Declaration

cs-api-definition
public Dec2Hex()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

ArgumentConversionRules

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

Declaration

cs-api-definition
public override ArgumentConversionRules ArgumentConversionRules { get; }

Property Value

ArgumentConversionRules

The argument conversion rules as ArgumentConversionRules.

Overrides NumbersInFunction.ArgumentConversionRules

FunctionInfo

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

Declaration

cs-api-definition
public override FunctionInfo FunctionInfo { get; }

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

The function name "DEC2HEX" used in formulas.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

Methods

EvaluateOverride(FunctionEvaluationContext<double>)

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

Declaration

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)

Parameters

context

FunctionEvaluationContext<double>

The context.

Returns

RadExpression

Functions result as RadExpression.

Overrides FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)