National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: Integer and Bit-Wise Operations Up: Arithmetic Functions Previous: Arithmetic Constants

Arithmetic Predicates

  numberp object [function]

  integerp object [function]   floatp object [function]   zerop number [function]
  • T if the number is integer zero or float 0.0.
  plusp number [function]
  • equivalent to (> number 0).
  minusp number [function]
  • equivalent to (< number 0).
  oddp integer [function]
  • The argument must be an integer. T if integer is odd.
  evenp integer [function]
  • The argument must be an integer. T if integer is an even number.
  /= n1 n2 [function]
  • Both n1 and n2 must be numbers. T if n1 is not equal to n2.
  = num1 num2 &rest more-numbers [function]
  • Both n1 and n2 must be numbers. T if n1 is equal to n2.
  > num1 num2 &rest more-numbers [function]
  < num1 num2 &rest more-numbers [function]
  >= num1 num2 &rest more-numbers [function]
  <= num1 num2 &rest more-numbers [function]
  • These comparisons can only be applicable to numbers. For numerical comparisons with tolerance, use functions prefixed by eps as described in the section 14.


Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996