Class VBNumericTypedValue
Represents any data type that is specified as a numeric type, mapping directly to "Any numeric type" specifications.
public abstract record VBNumericTypedValue : VBTypedValue, IEquatable<VBRuntimeEntity>, IEquatable<VBTypedValue>, INumericValue, IEquatable<VBNumericTypedValue>
- Inheritance
-
VBNumericTypedValue
- Implements
- Derived
- Inherited Members
Constructors
VBNumericTypedValue(VBType, Symbol)
Represents any data type that is specified as a numeric type, mapping directly to "Any numeric type" specifications.
protected VBNumericTypedValue(VBType TypeInfo, Symbol Symbol)
Parameters
TypeInfoVBTypeThe
VBTypeof the numeric value.SymbolSymbolThe symbol associated with this value.
Fields
SignificantIntegerDigits
The maximum possible number of significant digits retained in a String representation of a value of this type.
public const int SignificantIntegerDigits = 15
Field Value
Properties
Symbol
The symbol associated with this value.
public Symbol Symbol { get; init; }
Property Value
Methods
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
WithValue<T>(T)
Gets a copy of this value, with the specified underlying value.
public INumericValue WithValue<T>(T value) where T : struct
Parameters
valueTThe underlying value of the numeric value to be produced.
Returns
Type Parameters
T