Hello, I need to divide a float by and integer. I have tried casting but nothing seems to work. I would like to see .25 as my result in the following problem.
0.5/2 = .25
Here is some examples of what I have tried that doesnt work and the result it gave.
0.5/((float)2) = 0
0.5/2.0 = 0
((float).5)/((float) 2) = 0
(float).5/ 2 = 0
Thanks in advance!