Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

=

=

type: function (subr)
location: built-in
source file: xlmath.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(= <expr1> <expr2> ... )
        <exprN>         -       a numeric expression

DESCRIPTION

The = (EQUALITY) operation takes an arbitrary number of numeric arguments. It checks to see if all the numbers are equal. T is returned if all of the arguments are numerically equal to each other, NIL is returned otherwise.

EXAMPLES

(= 1 1)                                 ; returns T
(= 1 2)                                 ; returns NIL
(= 1 1.0)                               ; returns T
(= 1 1.0 1 (+ 0 1))                     ; returns T
(= 1 1.0 1.00001)                       ; returns NIL
(= "a" "b")                             ; error: bad argument type
(setq a 1) (setq b 1.0)                 ; set up A and B with values
(= a b)                                 ; returns T


Go to the first, previous, next, last section, table of contents.