How to print decimal value on LCD.

General discussion on mikroC.
Post Reply
Author
Message
Tore
Posts: 18
Joined: 21 Feb 2005 20:15

How to print decimal value on LCD.

#1 Post by Tore » 25 Jun 2005 21:11

I am wondering how i can print a unsigned short on the LCD display and get the decimal value presented? If I have a unsigned short that is a decimal value '98' i get 'b' presented on the LCD. I want '98' presented. Pleas help me. :)

Charlie
Posts: 2744
Joined: 01 Dec 2004 22:29

#2 Post by Charlie » 26 Jun 2005 18:26

HI Tore,

Take a look at BCD2DEC in the MC help.I think this is what you are looking for.
Regards Charlie M.

anton
Posts: 807
Joined: 23 Sep 2004 09:16
Location: South-Africa
Contact:

#3 Post by anton » 26 Jun 2005 20:13

Take a look at BCD2DEC in the MC help.I think this is what you are looking for.
Or have a look at ByteToStr
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)

Post Reply

Return to “mikroC General”