This should be a fairly easy question.
I have two int variables I need to divide to get a float.
Code:int a=6; int b=4; float c=a/b;
This code keeps giving me 1, and I need 1.5.
This should be a fairly easy question.
I have two int variables I need to divide to get a float.
Code:int a=6; int b=4; float c=a/b;
This code keeps giving me 1, and I need 1.5.
nifty
thanks
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.