Pages: [1]   Go Down
Author Topic: Floating point number and LCD display????  (Read 747 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How can I display my floating point number (2.88) on my LCD  display?
Serial.println() does not like floating point numbers.
Please Help!
Thanks
Rico
Logged

London
Offline Offline
Tesla Member
***
Karma: 10
Posts: 6250
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Rico,

The code here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1207226548/6#6
writes a floating point number to the serial port. You don't say if your lcd is connected using Serial or if you are using the Arduino liquidCrystal library. If the later and you are using the LiquidCrystal library from 0012, replace Serial.print with lcd.print.

Have fun!
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

MEM,
Thanks a million!
The code works great!
Again, thank you and have a super great day!
Rico
Logged

Pages: [1]   Go Up
Jump to: