This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

NonNegative

NonNegative[x]
gives True if x is a non-negative number.
  • NonNegative[x] gives False if x is manifestly a negative or complex numerical quantity. Otherwise, it remains unevaluated.
Evaluate different types of numbers:
Quantities that are not NumericQ remain unevaluated:
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