Skip to content

Latest commit

 

History

History
83 lines (48 loc) · 1.16 KB

CppDouble.md

File metadata and controls

83 lines (48 loc) · 1.16 KB

 

 

 

 

 

 

double is a keyword for the data type to store a real number, for example the value of pi.

 

Consider using double exclusively for floating-point types used in a class interface unless there is compelling reason to use float or long double instead [1].

 


double x = 1.23456789;

 

 

 

 

 

 

  1. GetSmallestDouble
  2. GetMaxDouble

 

 

 

 

 

 

  1. John Lakos. Large-Scale C++ Software Design. 1996. ISBN: 0-201-63362-0. Chapter 9.2.4: 'Consider using double exclusively for floating-point types used in the interface unless there is a compelling reason to use float or long double'