Keywords are the words in a language that are used for some internal process or represent some predefined actions. It is a keyword that is used to declare a variable that can store a floating-point value from the range of ±5.0 x 10-324 to ±1.7 x 10308. It is an alias of System.Double. Basically, it is a 64-bit double precision floating point number and have 14 to 15 digit precision.
Double Keyword occupies 8 byte (64 bits) space in the memory.
double variable_name = value;
We can specify a suffix d or D to represent a double value. Also floating point value without using any suffix is considered as a double value.
Input: num: 1234.5678 Output: num: 1234.5678 Size of a double variable: 8 Input: num = -67895.4322D Output: Type of num: System.Double num: -67895.4322 Size of a double variable: 8
num: 1234.5678 Size of a double variable: 8
Type of num: System.Double num: -67895.4322 Size of a double variable: 8 Min value of double: -1.79769313486232E+308 Max value of double: 1.79769313486232E+308
- How to implement is functionality without using is keyword in C#
- C# | this Keyword
- C# | finally keyword
- C# | as Operator Keyword
- C# | is Operator Keyword
- Is vs As operator keyword in C#
- Static keyword in C#
- typeof Operator Keyword in C#
- Invoking an overloaded constructor using this keyword in C#
- Difference between readonly and const keyword in C#
- LINQ | Let Keyword
- uint keyword in C#
- byte Keyword in C#
- decimal keyword in C#
- char keyword in C#
- bool Keyword in C#
- sbyte Keyword in C#
- float keyword in C#
- void Keyword in C#
- short keyword in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.