The Grinnell Scheme Web: The
negative? procedure

How do you determine whether a given integer is strictly negative?

Call the negative? procedure:

> (negative? -4)
#t
> (negative? 11)
#f
> (negative? 0)
#f
The arity of the negative? procedure is 1, and the operand must be an integer, a rational, or a real number.


Next topic
Previous topic
Table of contents


This document is available on the World Wide Web as

http://www.math.grin.edu/~stone/scheme-web/negative-ques.html


created July 2, 1995
last revised December 29, 1995

Copyright 1995 by John David Stone (stone@math.grin.edu)