I have an
int64_t variable. When I add another
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
What is going on?