35 ulong L = ToUInt64(Left, out
bool LSigned,
this);
36 ulong R = ToUInt64(Right, out
bool RSigned,
this);
40 if (LSigned && RSigned)
46 internal static ulong ToUInt64(
double Operand, out
bool Signed,
ScriptNode Node)
48 if (Operand != Math.Floor(Operand))
56 if (Operand <
long.MinValue)
59 Result = (ulong)(
long)Operand;
64 if (Operand > ulong.MaxValue)
67 Result = (ulong)Operand;
Exception thrown if an operand is not an integer.
Exception thrown if an operand is out of bounds.
Class managing a script expression.
Base class for binary double operators.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
And(ScriptNode Left, ScriptNode Right, int Start, int Length, Expression Expression)
Binary And.
override IElement Evaluate(double Left, double Right)
Evaluates the double operator.
Basic interface for all types of elements.