zerop


(zerop  number)

This function verifies whether the specified number is 0.

Arguments

number  (integer or double) number to verify to be 0

Return

T if the value is 0, NIL otherwise

Example

(zerop 1)  NIL
(zerop 0)  T
(zerop 0.01)  NIL
(zerop 0.0)  T

Remarks

it is strongly suggested to use (equal number tolerance) when comparing double/real numbers !



©  Bricsys NV. All rights reserved.