So I have a bunch of calculations and I test for the results with some log statements.
Log.i(tag, "modulus is " + modulusCalc);
Log.i(tag, "placevalue is " + placevalue(modulusCalc));
Log.i(tag, "calulation is " + (float)(494/1000));
Logcat shows:
- modulus is 494
- placevalue is 1000
- calulation is 0.0
What's going on with the calculation?? I had the names of the values but I kept getting 0.0 so I tried to hard code the equation and I still get 0.0 but the answer should be 0.494.
I have an identifier that is supposed to hold the calculation (called "minutes") and I declared it as a float(float minutes;). I also tested with removing the float cast in the log for calculation.
Anyone have a clue what is happening? I've got no more ideas. My calculator gives me the correct results. It's not the division symbol, because right before that calculation I divide 2 values together and I get the right results.