NUMBERP INDEX

NUMBERP _ _ _ _ _ _ _ _ _ _ _ _ operator

The numberp operator returns true if its argument is a number, and nil otherwise.

syntax:

numberp(<expression>) or numberp <expression>

<expression> can be any REDUCE scalar expression.

examples:


cc := 15.3; 

  CC := 15.3 


if numberp(cc) then write "number" else write "nonnumber"; 


  number 


if numberp(cb) then write "number" else write "nonnumber"; 


  nonnumber

Logical operators can only be used in conditional expressions, suc h as

if...then...else and while...do.