2ARITHMETIC AND OTHER NUMERICAL PARAPHERNALIA

Image

In this chapter, we’ll take a look at the rich set of numerical data types that Racket provides. We’ll discover the expected integer and floating-point values, but we’ll also learn that Racket supports rational (or fractional) values along with complex numbers (don’t worry if you don’t know what complex numbers are; they are not heavily used in this text, but we take a brief look for those that may be interested).

Booleans

Booleans are true and false values, and while they aren’t strictly numbers, they behave a bit like numbers in that they can be combined by various operators to produce other Boolean ...

Get Racket Programming the Fun Way now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.