I just saw this shortcut being used in some JavaScript.
(9 + 2) / 2|0; // results in 5
When you do the normal math it results in 5.5.
How come the top expression is resulting in Math.floor((9+2)/2)? Can someone point in in the direction of what that pipe is doing, I don't understand the shortcut.