CLCS
Function

rationalp

rationalp objectgeneralized-boolean

Arguments and Values

objectan object.
generalized-booleana 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)