GNU Info

Info Node: (librep.info)Comparison Predicates

(librep.info)Comparison Predicates


Next: Type Predicates Prev: Equality Predicates Up: Data Types
Enter node , (file) or (file)node

Comparison Predicates
---------------------

   These functions compare their two arguments in a scalar fashion, the
arguments may be of any type but the results are only meaningful for
numbers, strings (ASCII values of each byte compared until a
non-matching pair is found then those two values are compared as
numbers) and cons cells (cars compared before cdrs).

   Unlike the `eql' function, inexact and exact numbers will be
compared by first coercing the exact number to be inexact.

 - Function: = arg1 arg2 arg3 ... argn
     Returns true if all arguments represent the same value.

 - Function: /= arg1 arg2 arg3 ... argn
     Returns true if no two arguments represent the same value.

 - Function: > arg1 arg2 arg3 ... argn
     Returns true when ARG1 is `greater than' ARG2, and ARG2 is greater
     than ARG3, and so on, upto ARGN.

 - Function: >= arg1 arg2 arg3 ... argn
     Similar to `>', but for the "greater than or equal to" relation.

 - Function: < arg1 arg2 arg3 ... argn
     Similar to `>', but for the "less than" relation.

 - Function: <= arg1 arg2 arg3 ... argn
     Similar to `>', but for the "less than or equal to" relation.

   There are two related functions for finding the maximum or minimum
of a sequence of values.

 - Function: max #!rest args
     Return the maximum value from the list of ARGS. When comparing
     numbers, any inexact arguments cause the result to be inexact.

 - Function: min #!rest args
     Return the minimum value from the list of ARGS. When comparing
     numbers, any inexact arguments cause the result to be inexact.


automatically generated by info2www version 1.2.2.9