I am trying to use simple multiplication . But it gives me a negative (-21680) result. I am getting angry. WHY?
Someone explain me it
long raw;
int a = 255;
int b = 1200;
void setup() {
Serial.begin(9600);
}
void loop() {
raw = a*b;
Serial.print("Raw");
Serial.print(" ");
Serial.print(raw);
Serial.print(" ");
Serial.println();
Serial.println();
}