How to Serial.print a Double on an Arduino
November 22, 2008
I found the following code on the Arduino forums and decided to post it here for future reference. It allows you to print a double/float to the serial port. You’ll need to edit the last line if you didn’t want a carriage return after the value is printed. It works a treat. void printDouble(double val, [...]
0