I have an int64_t variable. When I add another int64_t variable
and convert it to a double to print it on the serial monitor, it acts as if it was a int32_t variable. This is the program:
int64_t a = 1 << 31;
double b = static_cast<double>(a);
Serial.println(b);
The output on the serial monitor is -2147483648.00.
What is going on?