How to print Float / Double to the Serial port?

I would like to print float and double values to the serial monitor. How do i do this?

cheers,
Pracas

Beginning with REL 0013 of the IDE you can just call Serial.print(floatvar). It defaults to 2 decimal places. If you search the forum you will find a way to set your own dec. position.

I forget where… but I found a routine that I used in my own programs for printing float values from a humidity sensor (SHT-11). I posted my results in the forum if you want to try what I used.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1179390550/3#3