Namespace: System
Double
Represents a double-precision floating-point number. This type provides a high-precision representation of real numbers.
Overview
Members
Details
Related
The System.Double
structure represents a double-precision 64-bit floating-point number. It is the most commonly used floating-point type in .NET for general-purpose calculations requiring high precision.
Type Information
- Struct Implements IComparable<Double>, IConvertible, IEquatable<Double>, IFormattable
Key Features
- Precision: Offers 15-17 decimal digits of precision.
- Range: Can represent numbers from approximately ±5.0 × 10-324 to ±1.7 × 10308.
-
Special Values: Supports special values like
PositiveInfinity
,NegativeInfinity
, andNaN
(Not-a-Number). - Comparisons: Supports standard arithmetic operations and comparisons, including handling of floating-point inaccuracies.