hi. i started pic basic pro and now ı have problem.I am making ad A/D converter using 16f877. Display is 4digit 7 segment common anodhe. So ı looked example codes, they use lcd and use "DEC" i tried it by this way:

'----------------------- ADC ------------------------------------
basla:
ADCON1=$8E 'PORTA.1= ANALOG , SONUC SAGA DAYALI
ADCON0=$A1 'CLOCK=INTERNAL A/D=PORTA.0 A/D=1
pause 500 'BEKLEME (STANDARTTIR)
ADCON0.2=1 'CEVRIM YAP
don: PAUSE 5
if ADCON0.2=1 THEN don ' CEVRIMIN BITMESINI BEKLE
analog.highbyte=ADRESH
analog.lowbyte=ADRESL

now how can ı make analog decimal?

thanks for help