Wiki

Clone wiki

symja_android_library / Symbols / UnitStep

UnitStep

UnitStep(expr)
returns 0, if expr is less than 0 and returns 1, if expr is greater equal than 0.

Examples

>>> UnitStep(-42)
0

Updated