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 >= (GREATER-THAN-OR-EQUAL) operation takes an arbitrary number of numeric arguments. It checks to see if all the numbers are monotonically non-increasing. T is returned if <expr1> is the arguments are numerically, monotonically non-increasing, NIL is returned otherwise. For two arguments, this has the effect of testing if <expr1> is greater than or equal to <expr2>.

EXAMPLES

(>= 1 2)                                ; returns NIL
(>= 1 1)                                ; returns T
(>= -1.5 -1.4)                          ; returns NIL
(>= 3 2 1)                              ; returns T
(>= 3 2 2)                              ; returns T
(>= 3 2 3)                              ; returns NIL
(>= "aa" "abc")                         ; error: bad argument type
(setq a 12) (setq b 13.99)              ; set up A and B with values
(>= a b)                                ; returns NIL
(>= b a)                                ; returns T


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