FIXP INDEX

FIXP _ _ _ _ _ _ _ _ _ _ _ _ operator

The fixp logical operator returns true if its argument is an integer.

syntax:

fixp(<expression>) or fixp <simple\_expression>

<expression> can be any valid REDUCE expression, <simple\_expression > must be a single identifier or begin with a prefix operator.

examples:


if fixp 1.5 then write "ok" else write "not";
			 


  not 


if fixp(a) then write "ok" else write "not";
			 


  not 


a := 15; 

  A := 15 


if fixp(a) then write "ok" else write "not";
			 


  ok

Logical operators can only be used inside conditional expressions such as if...then or while...do.