CLCS
Function

realp

realp objectgeneralized-boolean

Arguments and Values

objectan object.
generalized-booleana generalized boolean.

Description

Returns true if object is of type real; otherwise, returns false.

Examples

 (realp 12) ⇒  true
 (realp #c(5/3 7.2)) ⇒  false
 (realp nil) ⇒  false
 (realp (cons 1 2)) ⇒  false

Notes

 (realp object) ≡ (typep object 'real)