Share via


Single Structure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a single-precision floating-point number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Structure Single
[SerializableAttribute]
public struct Single
[SerializableAttribute]
public value class Single
[<Sealed>]
[<SerializableAttribute>]
type Single =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The Single type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString() () () () Converts the numeric value of this instance to its equivalent string representation. (Overrides Object. . :: . .ToString() () () ().)
Public method ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.

Top

Fields

  Name Description
Public fieldStatic member Epsilon Represents the smallest positive Single value that is greater than zero. This field is constant.
Public fieldStatic member MaxValue Represents the largest possible value of Single. This field is constant.
Public fieldStatic member MinValue Represents the smallest possible value of Single. This field is constant.

Top

Remarks

The Single value type represents a single-precision 32-bit number with values ranging from negative 3.402823e38 to positive 3.402823e38, as well as positive or negative zero, PositiveInfinity, NegativeInfinity, and not a number (NaN).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System Namespace