Strange float behaviour on Arduino Mega

I don't think there is a "problem". When you attempt to print digits beyond the useful significant digits of a float type, the results will be implementation-dependent. I have a feeling you're perhaps also being mislead by compiler optimization.

1 Like