G
Guest
I declared 2 integers 'numerator' and 'denominator' and a double 'result'.
If Numerator = 5 and deniminator = 145 then why when I put result in a
string do I get 0?
Example for a label text property:
myLabel.Text= numerator + " / " + denominator + " = " + result;
I get this: 5 / 145 = 0
Where's the decimal? This is a no brainer but I guess I'm lacking in that
department.
Thanx,
Poe
If Numerator = 5 and deniminator = 145 then why when I put result in a
string do I get 0?
Example for a label text property:
myLabel.Text= numerator + " / " + denominator + " = " + result;
I get this: 5 / 145 = 0
Where's the decimal? This is a no brainer but I guess I'm lacking in that
department.
Thanx,
Poe