Class EzrFloat
- Namespace
- EzrSquared.Runtime.Types.Core.Numerics
- Assembly
- ezrSquared-lib.dll
The float (actually double) type object.
public class EzrFloat : EzrObject, IEzrObject
- Inheritance
-
objectEzrFloat
- Implements
- Inherited Members
Constructors
EzrFloat(double, Context, Position, Position)
The float (actually double) type object.
public EzrFloat(double value, Context parentContext, Position startPosition, Position endPosition)
Parameters
value
doubleThe base value.
parentContext
ContextThe parent context.
startPosition
PositionThe starting position of the object.
endPosition
PositionThe ending position of the object.
Fields
Value
The double value.
public readonly double Value
Field Value
- double
Properties
Tag
The tag of the type of this object, similar to C# namespace naming conventions.
public override string Tag { get; protected internal set; }
Property Value
- string
TypeName
The name of the type of this object, in plain text, all lowercase. Spaces are allowed.
public override string TypeName { get; protected internal set; }
Property Value
- string
Methods
Addition(IEzrObject, RuntimeResult)
Performs the addition operation between the current object and another.
public override void Addition(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
Affirmation(RuntimeResult)
Affirms the current object.
public override void Affirmation(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks equality.
public override void ComparisonEqual(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonGreaterThan(IEzrObject, RuntimeResult)
Compares the object to another, checks if the current object is greater than the other.
public override void ComparisonGreaterThan(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonGreaterThanOrEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks if the current object is greater than or equal to the other.
public override void ComparisonGreaterThanOrEqual(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonLessThan(IEzrObject, RuntimeResult)
Compares the object to another, checks if the current object is less than the other.
public override void ComparisonLessThan(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonLessThanOrEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks if the current object is less than or equal to the other.
public override void ComparisonLessThanOrEqual(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComparisonNotEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks unequality.
public override void ComparisonNotEqual(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ComputeHashCode(RuntimeResult)
Evaluates the current object as its hash.
public override int ComputeHashCode(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying any errors.
Returns
- int
The evaluated value.
Division(IEzrObject, RuntimeResult)
Performs the division operation between the current object and another.
public override void Division(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
EvaluateBoolean(RuntimeResult)
Evaluates the current object as a boolean value.
public override bool EvaluateBoolean(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying any errors.
Returns
- bool
The evaluated value.
Inversion(RuntimeResult)
Inverts the current object, like, for example, true to false.
public override void Inversion(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying the result and any errors.
Modulo(IEzrObject, RuntimeResult)
Performs the modulo operation between the current object and another.
public override void Modulo(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
Multiplication(IEzrObject, RuntimeResult)
Performs the multiplication operation between the current object and another.
public override void Multiplication(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
Negation(RuntimeResult)
Negates the current object.
public override void Negation(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying the result and any errors.
Power(IEzrObject, RuntimeResult)
Performs the power or exponent operation between the current object and another.
public override void Power(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
StrictEquals(IEzrObject, RuntimeResult)
Strictly compares the current object to another, taking into account inheritance.
public override bool StrictEquals(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying any errors.
Returns
- bool
Subtraction(IEzrObject, RuntimeResult)
Performs the subtraction operation between the current object and another.
public override void Subtraction(IEzrObject other, RuntimeResult result)
Parameters
other
IEzrObjectThe other object in the operation.
result
RuntimeResultRuntime result for carrying the result and any errors.
ToString(RuntimeResult)
Evaluates the current object as a string value.
public override string ToString(RuntimeResult result)
Parameters
result
RuntimeResultRuntime result for carrying any errors.
Returns
- string
The evaluated value.