When I do
float y = analogRead(A0);
y *= 5 / 1024;
y will be 0,00 nomather what analogRead returns.
but this:
y = y * 5 / 1024;
This actually returns the correct value.
You would think that y *= x would be the same as y = y * x but this is not true when x is a fracture.
Is this normal in C as well, or is this just arduino language??
kind regards,
BK