Getting weird behavior in if statement.

TolpuddleSartre:

char digits[5];

dtostrf(average, 4, 2, digits);



[Try here](http://www.microchip.com/webdoc/AVRLibcReferenceManual/group__avr__stdlib_1ga060c998e77fb5fc0d3168b3ce8771d42.html)

jremington:
From the above link:

The caller is responsible for providing sufficient storage in s.

I changed average to double and increased the size of digits to 20 just in case, but after uploading the changes there was zero effect on the behavior. Also changing digits to string with no array won't compile, and looking at other code I think the char array is proper, but I could be wrong.