Sign

Sign returns the sign of the input in.

Element

Direction

Remark

in::continuous

input

continuous input value

out::continuous

output

signed integer value, sign of in;

out = 1

if

in > 0

out = -1

if

in < 0

out = 0

if

in = 0