I read somewhere that "long double" = "double" (on Teensy LC/3.x), but the following code shows that "1.23L" != "(double)1.23" (at least regarding implicit type casting)!(?)
Code:
void setup() {
Serial.begin(9600);
while(!Serial);
}
void loop() {
double y;
y = 1.23L / 4.56;
Serial.println(y, 16);
y = (double)1.23 / 4.56;
Serial.println(y, 16);while(1);
}
Last edited: