I would like to take advantage of the fact that large numbers subtracted from small numbers returns negative numbers, but this doesn't seem to work in arduino. I am curious why this doesn't work? So:
int small = 1000;
int large = 1500;
serial.println(small - large); //I get something like 6500 rather than -500. I smell binary issues.
void setup ()
{
Serial.begin (115200);
int small = 1000;
int large = 1500;
Serial.println(small - large); //I get something like 6500 rather than -500. I smell binary issues.
}
void loop () {}