Mathematics · Interactive tool
Sign and Rectified Linear Value
Calculate signum, truncation and rectified linear values.
Your inputs
Result
Calculated output
Enter inputs to calculate.
sgn(x) = −1 for x<0, 0 for x=0, and 1 for x>0. ReLU(x)=max(0,x). trunc(x) discards the fractional part toward zero.