I Just want to print full result of following equation:
float rate = (interestRate / 1200);
double rate = (interestRate / 1200);
where interestRate
is 5
. My problem is it always showing same value 0.0 instead 0.00416666666667 not matter which datatype I use from double or float.
How can I get full result of this simple equation? please help.