16 Floating-Point Numbers
In this part of the book, we work through some C features that aren’t typically useful in embedded programming but that you may encounter in mainframe programming. Floating-point numbers aren’t common in embedded programming because a lot of low-end processor chips can’t handle them. Even when you have a CPU that does work with them, floating-point arithmetic is slow, inexact, and tricky to use.
However, because you will occasionally encounter these numbers in scientific or 3D graphic programs, you should be prepared. This chapter covers the basics of floating point, why floating-point operations are so expensive ...
Get Bare Metal C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.