Arduino and serial LCD

Hello,

I-m new here but i have a question:

I use for my project Arduino and serial LCD from there: http://www.sparkfun.com/products/9393

In my project i use float numbers and the library for that serial CLD ca’t display float numbers.

I think there is a BIG BUG if i cand print float numbers with this LCD.

Anyone can help with sugestions? Somme body has sugested to split float numbers in two INT and display one by one, but i thins this is a rudimentary solution.

Waiting for sugestions guys!

Kind regards,

Leo

Welcome to the limited world of microcontrollers.

First, the LCD only understands ASCII characters, so blaming it for not understanding floats is pretty silly.

Does your float library have some sort of function to convert floats to strings?

Otherwise, you have to roll your own. (The splitting into two ints sounds pretty good, actually.)

You can also search for the source to printf() and rip out its %f code.

leonte2005:
In my project i use float numbers and the library for that serial CLD ca’t display float numbers.

I think there is a BIG BUG if i cand print float numbers with this LCD.

Might come in REALLY handy to see what code you've written thus far.

Is there some ftoa() function somewhere?

Joeisi:
Is there some ftoa() function somewhere?

It’s included in the serial print library.

http://arduino.cc/en/Serial/Print

All the OP has to do is specify how many digits to the right of the decimanl point he wants (if different from 2). Couldn’t be simpler.

Mee_n_Mac:
Couldn’t be simpler.

It could be simpler if you wrote the code for the O/P :o :mrgreen: