In my program code, I am performing below given arithmetic operation but I am getting the wrong answer every time.
int A; double B;
A= (2400 - (((180-B)/2)+(B-90))*10);
For Example: If, B = 162.98
then I am getting A = 1665 whereas I should get 1585.
What can be the issue in this calculation.