When would you use floating-point?
As examples, you will need to use the floating-point types if
you are working in an area where you:
- Need to keep track of fractional parts
(such as the amount of hamburger in a package)
- Work with extremely large numbers (distances between
- Work with extremely small values
(the size of atomic particles)