Floating point numbers
Are numbers that can contain decimal points.
What if the depth were really 5.75 fathoms ? ... Our program, as it is, couldn’t handle it.
We can declare floating point variables like this : float fathoms ;
float feet ;
Previous slide
Next slide
Back to first slide
View graphic version