13 FLOATING-POINT NUMBERS
Your compiler now supports four different integer types, but it still doesn’t support non-integral values. It also doesn’t support values outside the range of long and unsigned long. In this chapter, you’ll address these shortcomings by implementing the double type. This type uses a floating-point binary representation, which is totally different from the signed and unsigned integer representations we’ve seen so far. The C standard also defines two other floating-point types, float and long double ...
Get Writing a C Compiler 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.