User Tools

Site Tools


ixe:irpl:math:sign0

Math

sign0

SIGN0(<-val)

Description

Returns the sign of the input value. Return value is 1 when f is positive, -1 when f is negative, and 0 if the input value is 0.

Examples

trace(sign(42)) #prints '1'
ixe/irpl/math/sign0.txt · Last modified: 2025/01/07 15:41 by 127.0.0.1