HEX to DEC convertion

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
alainc
Posts: 9
Joined: 19 Jul 2009 13:17

HEX to DEC convertion

#1 Post by alainc » 20 Aug 2009 14:27

Hi,

I need to HEX word (ex: $03E5) to it's decimal format and then to a string
format for display on LCD. How could this be done? thanks

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#2 Post by nikola.kostic » 20 Aug 2009 16:15

Hi Alainc,

You can directly convert hex into string by using:

Code: Select all

LongIntToStr(0x03E5, txt)
You can find details about this function in mikroBasic help.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”