The limits of Serial.print(float)


BIG values

When it comes to printing of large numbers you will run into a problem. Up to 231 everything looks fine. Beyond that Serial.print outputs inf but you can still work with the float value. Only when it exceeds 2127 it turns into inf and you cannot work with that value any longer.

small Values

So when you set float a = 1.0 and divide it by 2.0 continuously this is what you get:

So a value of about 1.4*10-45 seems to be the smallest value above zero.


contact: nji(at)gmx.de