View previous topic :: View next topic |
Author |
Message |
Userrr
Joined: 09 Jul 2004 Posts: 40 Location: Europe
|
Point's in LCD |
Posted: Thu Aug 26, 2004 12:21 pm |
|
|
Using 2x20 LCD, I must printf to LCD value float , but how put to this
value after cents, thouthands, millions
example:
value = 9123567,5 in float
at LCD I must printf: 9.123.567.5 of ... |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Fri Aug 27, 2004 8:10 am |
|
|
I would use the sprintf(string, cstring, values...);
to get the value into a string. Then parse through the string and add the decimal points in the right place. I've seen code in the forum for doing this. ( its not hard) and if your good at searching the forum you can find it.
This is sort of a brut force way to handle this. But it will work.
|
|
|
|