I have a sketch that gives the wrong answer to a calculation I need to do.
The calculation it is supposed to do is (abc)/d where a, b, c, d are integers.
For troubleshooting I tried logging the result and substituting the variables with an example of numbers:
Serial.print((9200 * 32)/ 144);
Serial.print(( (float) (9200 * 32)/ (float) 144));
both return 224 instead of 2044, honestly I don't think the casting is necessary but I tried non the less just to be sure.
Someone, please help me