C# compiler allocates 64 bits (8 bytes) to store a double variable type. For reference, a double variable type can keep values with a precision of 14 or 15 digits, in the interval between 1.7E-308 and 1.7E+308.
You should know that the float and the double variable types are floating binary point types. In other words, they represent a number like this:
10001.10010110011.
The binary number and the location of the binary point are both encoded within the value.
Decimal (of which we will discuss in the next lesson) is a floating decimal point type. In other words, they represent a number like this:
12345.65789
The following image illustrates the representation of a double variable type:
Additional Information
The concepts explained in this lesson are also shown visually as part of the following video:
Tags: double variable, variable types, variables