sign

returns the sign of the input:0 = negative, 1 = unsigned (inlet == zero),2 = positive
Author: robert schirmer
License: BSD
Github: rbrt/math/sign.axo

Inlets

frac32 in

Outlets

int32 sign; 0 = negative, 1 =unsigned (==zero) , 2 = positive

Control Rate
if (inlet_in == 0)
  outlet_sign = 1;
if (inlet_in < 0)
  outlet_sign = 0;
if (inlet_in > 0)
  outlet_sign = 2;

Privacy

© 2024 Zrna Research