I have an issue with C# not calculating correctly for me to draw my progress bar.
int width = 130;
int maxValue = 20;
int value = 20;
int percent = (width / maxValue) * value
Now it should return 130 so it mean my progress bar is full but it returns 120 so I don't know what is happening.
here is and image of progress bar https://i.stack.imgur.com/JhYnX.jpg
I also tested the formula with VB.NET and it worked perfectly.
I am using VS2013 in Windows 7 x86.