What\'s the best way to send float, double, and int16 over serial on Arduino?
float
double
int16
The Serial.print() only sends val
Serial.print()
This simply works. Use Serial.println() function
void setup() { Serial.begin(9600); } void loop() { float x = 23.45585888; Serial.println(x, 10); delay(1000); }
And this is the output: