Was wondering how I can print a floating number.
Serial.print() accepts only an int (long).
Thanks in advance
there is a solution here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1207226548/13#13
Fine, thanks. Was wondering now, how I can put these functions in a separate source so to make more readable the main source file.
Thank again.
You could put the function in seperate tab. The IDE allows you to manage sketches with more than one file (each of which appears in its own tab). see the Arduino reference for the IDE for more info on this.
Or you could create a library. Its not all that difficult to do - there is a tutorial here: http://www.arduino.cc/en/Hacking/LibraryTutorial
Good luck!