peterzatko
New Member
I need convert from decimal to hexadecimal.Example number 208 to D0.In mikrobasic.Thx
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
charneeded = lookup(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F) , index
num = 208
fir = num / 16
sec = num - fir * 16
fir = fir + 48
sec = sec + 48
If fir > 57 Then fir = fir + 7
If sec > 57 Then sec = sec + 7
dat = "0123456789ABCDEF"
fir = Mid(dat, num / 16 + 1, 1)
sec = Mid(dat, num Mod 16 + 1, 1)
How it create in mikrobasic