WLJS LogoWLJS Notebook

NonPositive

NonPositive[x] gives True if x is a non‐positive number.

Examples

Test if a number is non-positive:

NonPositive[-5]
(* True *)

NonPositive[0]
(* True *)

NonPositive[3]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page