Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C#

double: practical reference

double: practical reference: double is a 64-bit IEEE 754 binary floating-point type.

Version: C# built-in type reference; .NET 10 runtime

Syntax

double value

double is a 64-bit IEEE 754 binary floating-point type.

Use it for scientific computation and broad range when representation error is acceptable.

The value 0.1 is not exact, and == is usually unsuitable for computed results.

It supports NaN, positive and negative infinity, and signed zero; overflow yields infinity.

The complete program actually uses double; its exact expected stdout is System.Double.

Examples

using System;

Console.WriteLine(typeof(double).FullName);

Result

System.Double

The complete program actually uses `double`; its exact expected stdout is `System.Double`.

Sources