Printing NaN values as "nan" in printFloat().
http://code.google.com/p/arduino/issues/detail?id=946
This commit is contained in:
parent
57973bcd49
commit
3436ca97cb
|
@ -226,6 +226,8 @@ size_t Print::printFloat(double number, uint8_t digits)
|
|||
{
|
||||
size_t n = 0;
|
||||
|
||||
if (isnan(number)) return print("nan");
|
||||
|
||||
// Handle negative numbers
|
||||
if (number < 0.0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue