var tm=110;
var fm=200;
var pr=Math.ceil(tm/fm*100);
console.log(pr);
The result is showing 56. But it should be 55
Note that tm/fm*100 is resulting 55.0000001 But When tm=100 and all fm=200 then the result is 50
I've solved that problem concedering upto 2 decimal places after point, I could not understand where from 1 is comming after some 0s!