G
Gas
I am new to C#, I want to perfoem a calculation and I have a weird out come
from the app.
Here is the code
double percentage = 0;
percentage = ctrl1.Height / (ctrl1.Height+ ctrl2.Height)
when I try to output the percentage, it is always 0.
(ctrl1.Height and ctrl2.Height are positive value)
anyone can give me some help here?
from the app.
Here is the code
double percentage = 0;
percentage = ctrl1.Height / (ctrl1.Height+ ctrl2.Height)
when I try to output the percentage, it is always 0.
(ctrl1.Height and ctrl2.Height are positive value)
anyone can give me some help here?