20. Advanced Math (for the Computer, Not You!)

This chapter extends your knowledge of built-in functions to the numeric functions. C helps you do math that the C operators can’t do alone. More than anything else, the C built-in numeric functions supply routines that you don’t have to write yourself.

A lot of C’s built-in math functions are highly technical—not that their uses are difficult, but their purposes might be. Unless you need trigonometric and advanced math functions, you might not find a use for many of the functions described in this chapter.


Some people program in C for years and never need many ...

Get C Programming Absolute Beginner’s Guide, Third Edition 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.