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

Conversion Library

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



Joined: 29 May 2019
Posts: 21

View user's profile Send private message

Conversion Library
PostPosted: Thu Jun 06, 2019 5:16 pm     Reply with quote

Hi, I'm developing a project using a PIC18F4550 microcontroller and an LM044L LCD display. I need a library that converts hexadecimal values (int) to decimals.
Then I will display these decimal values on the LCD display.
Does anyone know where I can find such a library? Or how can I convert the values? Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jun 06, 2019 6:29 pm     Reply with quote

It's all in the CCS manual, in the section on printf.
Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=42090&start=1

CCS manual:
https://www.ccsinfo.com/downloads/ccs_c_manual.pdf
The printf section starts on page 276.
temtronic



Joined: 01 Jul 2010
Posts: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jun 07, 2019 4:23 am     Reply with quote

just a helpful hint..
... while your project is open, pressing F11 will display the CCS Manual, when using MPLAB.
it's always there when I'm cutting code...
Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Fri Jun 07, 2019 8:04 am     Reply with quote

and just as a further comment to this, since it is not said where these numbers
are actually coming 'from', if they are hexadecimal, then 'atoi', is the function
to convert ASCII to an integer.
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