Chapter 4 Floating-point numbers and Math
The last chapter focused on variables that were all integer values (
int
types). But often times we will want to work with values that are not integers; values like 3.14159 or 2.5. This chapter introduces how we can do so in C++ as well as the of the math functions available to us in the cmath
library to do more complex mathematics.