[ATLISP][Common Lisp HyperSpec (TM)] [Previous][Up][Next]


Function RATIONALP

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

Side Effects: None.

Affected By: None.

Exceptional Situations: None.

See Also:

rational

Notes:

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


[Starting Points][Contents][Index][Symbols][Glossary][Issues]
Copyright 1996-2005, @lisp. All rights reserved.