|
|
System.Single Structure |
|
|
Description | |
|
The Single structure holds floating point numbers in the range +/-3.402823e38, plus the following extreme values :
PositiveInfinity | Infinity (N/0) |
NegativeInfinity | -Infinity (-N/0) |
NaN | Not a number (0/0) |
Single complies with IEEE standards for calculations.
Unlike the Decimal structure, rounding can occur with Single value calculations.
Single structures are created dynamically from their definition - there is no Create constructor. The native delphi Single type maps to System.Single. |
|
Methods | | | | CompareTo | Compares the current Single value to another | | Equals | Determines if the current Single equals another | | IsInfinity | Returns true if a a given Single is +/- infinite in value | | IsNaN | Returns true if a a given Single has no valid value | | IsNegativeInfinity | Returns true if a a given Single is - infinite in value | | IsPositiveInfinity | Returns true if a a given Single is + infinite in value | | Parse | Converts a string representation of a Single into a Single value | | ToString | Converts the current Single value to a string |
|
|
| Fields | | | Epsilon | | Single | | Smallest non-zero +ve value : 4.94065645841247e-324
| MinValue | | Single | | Largest negative value : -3.402823e38
| MaxValue | | Single | | Largest negative value : 3.402823e38
| NaN | | Single | | Not a number : 0/0
| NegativeInfinity | | Single | | -Infinity
| PositiveInfinity | | Single | | Infinity |
|
Microsoft MSDN links | |
|
|
|
|
|
|
|
|