ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   2 Syntax   2.3 Interpretation of Tokens

2.3.2 Constructing Numbers from Tokens

A real is constructed directly from a corresponding numeric token; see Figure 2.3.1 Numbers as Tokens.

A complex is notated as a #C (or #c) followed by a list of two reals; see Section 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 Section Sharpsign B, Section Sharpsign O, Section Sharpsign X, and Section Sharpsign R.

This section summarizes the full syntax for numbers.  Syntax of a Rational  Syntax of a Float  Syntax of a Complex

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25