#### AdDenissen

##### New member

I did a simple test on my teensy4.1:

double a = 1.00001; double b = 1.00001;

Serial.printf("a %.16f b %.16f a*b %.16f", a, b, a*b);

and got this result: a 1.0000100135803223 b 1.0000100135803223 a*b 1.0000200272609163

I expected: a 1.000010000 b 1.000010000 a*b 1.000020001

It looks like that the 64 bits doubles are truncated to 32 bits float while reading the numbers in the text.

Any feedback is welcome.

Ad Denissen.

double a = 1.00001; double b = 1.00001;

Serial.printf("a %.16f b %.16f a*b %.16f", a, b, a*b);

and got this result: a 1.0000100135803223 b 1.0000100135803223 a*b 1.0000200272609163

I expected: a 1.000010000 b 1.000010000 a*b 1.000020001

It looks like that the 64 bits doubles are truncated to 32 bits float while reading the numbers in the text.

Any feedback is welcome.

Ad Denissen.

Last edited: