Click or drag to resize
Single Structure
Represents a single-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Single : IComparable, IFormattable, 
	IConvertible, IComparable<float>, IEquatable<float>

The Single type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(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.
Public methodCompareTo(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.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Single)
Returns a value indicating whether this instance and a specified Single object represent the same value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsNaN
Returns a value indicating whether the specified number evaluates to not a number (NaN).
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
Represents the smallest positive Single value that is greater than zero. This field is constant.
Public fieldStatic memberMaxValue
Represents the largest possible value of Single. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of Single. This field is constant.
Public fieldStatic memberNaN
Represents not a number (NaN). This field is constant.
Public fieldStatic memberNegativeInfinity
Represents negative infinity. This field is constant.
Public fieldStatic memberPositiveInfinity
Represents positive infinity. This field is constant.
Top
See Also