Table of Contents

Class MaxNumber

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

Prefix expression that finds the maximum value among multiple numeric operands. Takes one or more parameters and returns the largest numeric value.

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

Constructors

MaxNumber()

Initializes a new instance of the MaxNumber class with name "Max" and variable parameter count (minimum 1).

public MaxNumber()

Methods

Run(List<object>)

Finds and returns the maximum numeric value from all operands. Each operand is converted to double before comparison.

protected override object Run(List<object> list)

Parameters

list List<object>

List containing one or more numeric operands to compare.

Returns

object

The maximum numeric value as a double.

Exceptions

FormatException

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