NonNegative

NonNegative[x]

gives True if x is a nonnegative number.

Details

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

Examples

Basic Examples  (1)

Evaluate different types of numbers:

Quantities that are not NumericQ remain unevaluated:

Introduced in 1988
 (1.0)