[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppFloat
The range of a float can be found at compile time with std::numeric_limits.
Prefer a double over a float or a long double [1]
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppFloat
(C++) float
float is a data type (and thus a keyword) that can contain broken numbers.The range of a float can be found at compile time with std::numeric_limits.
Prefer a double over a float or a long double [1]
'float' links
Reference
- 1) Bjarne Stroustrup. The C++ Programming Language (3rd edition).ISBN: 0-201-88954-4. Item 4.10.15: 'Prefer a double over a float or a long double.'
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
