WLJS LogoWLJS Notebook

NonNegative

NonNegative[x] gives True if x is a non-negative number (zero or positive).

Examples

Test for non-negative numbers:

NonNegative[5]
(* True *)
NonNegative[0]
(* True *)
NonNegative[-3]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page