SketchyLISP Reference |
Copyright (C) 2007 Nils M Holm |
<<[nexpt] | [Index] | [normalize]>> |
Conformance: SketchyLISP Core
Purpose: Check whether a number is positive or zero.
Arguments:
X - number
Implementation:
(define (non-negative? x) (eq? (negative? x) #f))
Example:
(non-negative? 0) => #t
See also:
digits,
negative?,
zero?,
abs.
<<[nexpt] | [Index] | [normalize]>> |