When I check some code, I found a miss calculation regarding bit operation ( |0).
First, I wonder that there are any special reasons why is '|0' used after calculating two numbers like (a*b)|0
Secondly, in the below case, I expect to get a result is 220050 but the result is 220049. Do you guys know why I get this result?
importPackage(java.io); importPackage(java.lang);
var a = 164.700;
var b = 1500;
var result = (a*b)|0;
System.out.println(result);