| Single Structure |
Namespace: System
[SerializableAttribute] public struct Single : IComparable, IFormattable, IConvertible, IComparable<float>, IEquatable<float>
The Single type exposes the following members.
| Name | Description | |
|---|---|---|
| CompareTo(Object) | Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. | |
| CompareTo(Single) | Compares this instance to a specified single-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified single-precision floating-point number. | |
| Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueTypeEquals(Object).) | |
| Equals(Single) | Returns a value indicating whether this instance and a specified Single object represent the same value. | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsNaN | Returns a value indicating whether the specified number evaluates to not a number (NaN). | |
| ToString | Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueTypeToString.) | |
| ToString(IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. | |
| ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. | |
| ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
| Name | Description | |
|---|---|---|
| Epsilon | Represents the smallest positive Single value that is greater than zero. This field is constant. | |
| MaxValue | Represents the largest possible value of Single. This field is constant. | |
| MinValue | Represents the smallest possible value of Single. This field is constant. | |
| NaN | Represents not a number (NaN). This field is constant. | |
| NegativeInfinity | Represents negative infinity. This field is constant. | |
| PositiveInfinity | Represents positive infinity. This field is constant. |