Numeral to Hex
Reply | Flag | Categorize
AriMB 07 Feb 2013 17:44
AriMB

Included page "member:arimb" does not exist (create it now)


Guest

Does anyone know how to convert from numeral to hexadecimal? I have a TI-83+ which does not have the ▶Hex command. Please help

Attachment:

Xeda Elnara 07 Feb 2013 20:01
Xeda Elnara

Moderator

FA

Guest

I believe you want a command to convert decimal to hexadecimal? You can do this, where A is the number to convert:

"0→Str1
While A
sub("0123456789ABCDEF",1+16fPart(A/16),1)+Str1→Str1
iPart(A/16→A
End
If Str1≠"0
sub(Str1,2,length(Str1)-1

Hopefully that works ^^'

Attachment:

Anonymous 08 Feb 2013 17:43
Anonymous

Included page "member:anonymous" does not exist (create it now)


Guest

it almost works, just need to make this small change

"0→Str1
While A
sub("0123456789ABCDEF",1+16fPart(A/16),1)+Str1→Str1
iPart(A/16→A
End
If Str1≠"0
sub(Str1,**1**,length(Str1)-1

Attachment:

AriMB 08 Feb 2013 17:44
AriMB

Included page "member:arimb" does not exist (create it now)


Guest

yet again…above post is mine

Attachment:

Xeda Elnara 08 Feb 2013 21:04
Xeda Elnara

Moderator

FA

Guest

Haha, oops, sorry XD I am used to adding things to the end of Str1 instead of putting things before it x_x

Attachment:

Make a reply:

To use the style buttons, click on the one you want, then press Ctrl+V.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License