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

Unitize

Unitize[x]
gives 0 when x is zero, and 1 when x has any other numerical value.
  • Unitize[x, dx] gives 0 for any x with magnitude less than dx.
  • Unitize[x] in general works using PossibleZeroQ, and can handle numbers represented in symbolic form.
New in 6