ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   12 Numbers   12.2 Dictionary of Numbers

12.2.55 rationalp Function

Syntax:
rationalp object    generalized-boolean

Arguments and Values:
object - an object.

generalized-boolean - a generalized boolean.

Description:
Returns true if object is of type rational; otherwise, returns false.

Examples:
 (rationalp 12)  true
 (rationalp 6/5)  true
 (rationalp 1.212)  false

See Also:
rational

Notes:
 (rationalp object) ==(typep object 'rational)

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015