CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Point's in LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Userrr



Joined: 09 Jul 2004
Posts: 40
Location: Europe

View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger

Point's in LCD
PostPosted: Thu Aug 26, 2004 12:21 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Aug 27, 2004 8:10 am     Reply with quote

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.
Wink
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group