I have a c# code which calculates (304/1000)*100, which equals 30.4, however when I run the code in c# every single time I get 0.
decimal width = (maxSize.Width/ maxValue) * value; //304, 1000, 100 respectively Console.WriteLine(width); //Returns 0
I don't understand what the hell is going on?
Pranav Negandhi answered question
Have an answer?