Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 2 - The PowerPC Numerics C Implementation


Chapter 9 - Conversion Functions

This chapter describes how you can perform the conversions required by the IEEE standard using MathLib C functions. For each type of conversion, this chapter lists the functions you can use to perform that conversion. It shows the declarations of these functions, describes what they do, describes when they raise floating-point exceptions, and gives examples of how to use them. For a description of the conversions required by the IEEE standard and the details of how each conversion is performed in PowerPC Numerics, see Chapter 5, "Conversions." All of the conversion function declarations appear in the file fp.h.


Chapter Contents
Converting Floating-Point to Integer Formats
Rounding Floating-Point Numbers to Integers
Converting Integers to Floating-Point Formats
Converting Between Floating-Point Formats
Converting Between Binary and Decimal Numbers
Converting Between Decimal Formats
Conversions Summary
C Summary
Constants
Data Types
Conversion Routines
Converting Floating-Point Formats to Integer Formats
Rounding Floating-Point Numbers to Integers
Converting Decimal Numbers to Binary Numbers
Converting Binary Numbers to Decimal Numbers
Converting Between Decimal Formats

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996