A real is constructed directly from a corresponding numeric token; see Figure~2–9.
A complex is notated as a #C
(or #c
) followed by a list
of two reals; see Sharpsign C.
The reader macros #B
, #O
, #X
, and #R
may also be useful
in controlling the input radix in which rationals are parsed;
see Sharpsign B,
Sharpsign O,
Sharpsign X,
and Sharpsign R.
This section summarizes the full syntax for numbers.
Syntax of a Rational | ||
Syntax of an Integer | ||
Syntax of a Ratio | ||
Syntax of a Float | ||
Syntax of a Complex |