Table of Contents

Class Number

Namespace
Albatross.Expression.Prefix
Assembly
Albatross.Expression.dll

Prefix expression that converts an operand to a numeric (double) value. Takes exactly one parameter and performs type conversion to double.

public class Number : PrefixExpression, IPrefixExpression, IExpression, IToken
Inheritance
Number
Implements
Inherited Members
Extension Methods

Constructors

Number()

Initializes a new instance of the Number class with name "Number" and exactly one parameter.

public Number()

Methods

Run(List<object>)

Converts the provided operand to a double value using the framework's conversion methods. Supports conversion from strings, numeric types, and JSON elements.

protected override object Run(List<object> operands)

Parameters

operands List<object>

List containing exactly one operand to convert to numeric value.

Returns

object

The numeric representation of the operand as a double.

Exceptions

FormatException

Thrown when the operand cannot be converted to a numeric value.