Positive

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

DetailsDetails

  • Positive[x] gives False if x is manifestly a negative numerical quantity, a complex numerical quantity, or zero. Otherwise, it remains unevaluated.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Evaluate different types of numbers:

In[1]:=
Click for copyable input
Out[1]=

Quantities that are not NumericQ remain unevaluated:

In[2]:=
Click for copyable input
Out[2]=
New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »