C# Bug or Something Wrong [duplicate]
问题 This question already has answers here : Why do the division (/) operators behave differently in VB.NET and C#? (5 answers) Closed 5 years ago . 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 http://imgur.com/sUbshxk I