using Serial.XXX function to print float values.

how to send float values using serial.xxx functions. i.e. how to use Serial.println() or Serial.print() or serial.write(); to send float value. like in other c compilers.

eg.

float y = 1.2345;

serial.print(y); // the output of this on serial port should be 1.2345

serial.print(y); // the output of this on serial port should be 1.2345

What is it? What problem do you have?

Look at the documentation for the Serial.print() function. There is an optional second argument that controls the number of decimal places, when the argument is a float.

Do I want to flash my UNO just to see what I might get? .... noooo....

So why not post what you get instead of 1.2345? It's like the movie ended before the plot.

Sorry friends, It did work now . It was some other mistake in my calculations ( wrong code written) that lead to error value of float.
While deeper debug. I found it.

moderates/admin, please delete this thread as this thread would add no value to this forum.