ValueType Classes
ValueType classes are ElSystem classes that represent different types of numeric, byte, string, and boolean values.
Namespace: elsystem
Classes
The following ValueType classes are uses to represent values including true/false values, integer and real numbers, and text strings.
Name | Description | |
![]() |
ElSystem.elBoolean | Represents a boolean (true=1/false=0) value. |
![]() |
ElSystem.elByte | Represents an 8-bit unsigned integer (byte). |
![]() |
Elsystem.elInt | Represents a 32-bit integer number. |
![]() |
ElSystem.elInt64 | Represents a 64-bit integer number. |
![]() |
ElSystem.elFloat | Represents a 32-bit real (float) number. |
![]() |
ElSystem.elDouble | Represents a 64-bit real (double) number. |
![]() |
ElSystem.elString | Represents a text string as series of Unicode characters. |
Common Methods
The following methods are common to the above ValueType classes, although not all methods are used by every class. The 'value' parameter refers to a value of the current instance type. For information about specific methods for a specific ValueType class, refer to the Dictionary and the description for that method.
Name | Description | |
![]() |
Epsilon() | Represents the value of Epsilon for real value types. |
![]() |
Equals(value) | True if the current instance is equal to the specified value. |
![]() |
Equals(elsystem.object) | True if the current instance is equal to the specified object. |
![]() |
FalseString | Returns the text string 'false' for a boolean type. |
![]() |
IsNaN(number) | True if the number evaluates to a non-numeric value for real value types. |
![]() |
IsNegativeInfinity(number) | True if the number evaluates to negative infinity for real value types. |
![]() |
IsPositiveInfinity(number) | True if the number evaluates to positive infinity for real value types. |
![]() |
FalseString() | Returns the text string 'false' for a boolean type. |
![]() |
MaxValue() | Represents the largest possible value of this type. |
![]() |
MinValue() | Represents the smallest possible value of this type. |
![]() |
NaN() | Represents a value that is not a number(NaN) for real value types. |
![]() |
NegativeInfinity() | Represents the negative infinity number for real value types. |
![]() |
Parse(string) | Converts the string representation of a value to its class value. |
![]() |
Parse(string, style) | Converts the string representation of a value to its class value using the specified style value. See elNumberStyles for possible style codes. |
![]() |
Parse(string, style, LCID) | Converts the string representation of a value to its class value using the specified style value and LCID integer value. See elNumberStyles for possible style codes and LCID for language codes. |
![]() |
PositiveInfinity() | Represents the positive infinity number for real value types. |
![]() |
ToString() | Converts the value of the current instance to a text string. |
![]() |
TrueString() | Returns the text string 'true' for a boolean type. |
![]() |
TryParse(snumber,value) | True if the snumber string was converted into the referenced value without any errors. |
![]() |
TryParse(snumber,style,value) | True if the snumber string with the specified style format codes(s) was converted into the referenced value without any errors. See elNumberStyles for possible style codes. |
![]() |
TryParse(snumber.style,LCID,value) | True if the snumber string with the specified style format code(s) and language ID number was converted into the referenced value without any errors. See elNumberStyles for possible style codes and LCID for language codes. |
Operators
The following operator are used with elInt64 values.
Name | Description | |
![]() |
* | For multiplying by a double or Int64 value. |
![]() |
+ | For adding a double or Int64 value. |
![]() |
+= | For adding a double or Int64 value and replacing. |
![]() |
- | For subtracting a double or Int64 value. |
![]() |
-= | For subtracting a double or Int64 value and replacing. |
![]() |
/ | For dividing by a double or Int64 value. |
![]() |
< | True when comparing two values where the first is less than the second. |
![]() |
<> | True when comparing two values that are not equal. |
![]() |
= | For replacing by a double or Int64 value. |
![]() |
> | True when comparing two values where the first is greater than the second. |