Chapter 12. Numerics

This chapter describes the numeric components of the C++ standard library. In particular, it presents the class for complex numbers, the classes for value arrays, and the global numeric functions, which are inherited from the C library.

Two other numeric components in the C++ standard library are described in other parts of this book:

  1. The STL contains some numeric algorithms that are described in Section 9.11.

  2. For all fundamental numeric data types, the implementation-specific aspects of their representation are described by numeric_limits, as described in Section 4.3.

Complex Numbers

The C++ standard library provides the template class complex<> to operate on complex numbers. Just to remind you: Complex numbers are numbers that ...

Get The C++ Standard Library: A Tutorial and Reference 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.