Floats have only 6-7 decimal digits of precision. That means the total number of digits, not the number to the right of the decimal point.
const float pi = 3.1415927
const float pi = 3.141592
Hi GangThe Arduino Reference states the following.This is a contradiction. The first sentence states that a float has 6-7 decimal digits of precision. From what I understand decimal digits are to the right of the decimal point.