WLJS LogoWLJS Notebook

Positive

Positive[x] gives True if x is a positive number.

Examples

Test for positive numbers:

Positive[5]
(* True *)
Positive[-3]
(* False *)

Filter positive numbers:

Select[{-2, -1, 0, 1, 2}, Positive]
(* {1, 2} *)

Please visit the official Wolfram Language Reference for more details.

On this page