Qurak

Unitize

Available

Returns 0 for zero and 1 for nonzero values

Unitize[x]
Unitize[{0, 1, -3, 0, 5}] → {0, 1, 1, 0, 1}

Topics

Related

All 6300 functions · Use this from an MCP client