Higher Math

(This section is optional. Some of it assumes a fair degree of mathematical knowledge. If you aren’t interested, you can go straight to Chapter 7, Flow Control, without any problems. However, a quick scan of this section might come in handy.)

There aren’t nearly as many number methods as there are string methods (though I still don’t know them all off the top of my head). Here we’ll look at the rest of the arithmetic methods, a random number generator, and the Math object, with its trigonometric and transcendental methods.

Get Learn to Program, 2nd 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.