+ 1
What is the difference between pow(64,1/3.0) and pow(64,1/3) ? C++
Float and Integer problems
5 Respostas
+ 1
It's just a rule.
If one from arguments is double(float) result will be double(float)
+ 2
1/3=0
1/3.0=0.(3)
+ 1
But i still have 1 doubt ... 1/3.0 is in the form of int/float ... why the answer is in the form of float , why not int ?
+ 1
Don't mention it.
0
thanks a lot