C++ Tutorial for Beginners 10: Floating Point Variable Types - Double and Float

It's also possible to store and manipulate floating point numbers in C++. In this tutorial we'll take a look at floating-point types -- numbers that contain a decimal point. Again, we'll also look at what happens when you select the wrong type for your needs and why you have to be particularly careful in manipulating floating point numbers.



Click here to download source code for this tutorial.