This topic has probably already been addressed, but I just wanted to get a better grasp of coding hex.

Code:

"0123456789ABCDEF"->Str0
Input "",Str1
Length(Str1->L
For(A,L,1,-1
   sub(Str1,A,1)->Str2
   inString(Str0,Str2)+1->Z
   Z*16^^(L-A->V
   D+V->D
End
Disp D
Stop

How to program backwards?
How about

Code:
Input Str1
Disp sum(seq(16^(length(Str1)-A)(inString("0123456789ABCDEF",sub(Str1,A,1))-1),A,1,length(Str1
mr womp womp wrote:
How about

Code:
Input Str1
Disp sum(seq(16^(length(Str1)-A)(inString("0123456789ABCDEF",sub(Str1,A,1))-1),A,1,length(Str1

Nesting has never been so useful before, thank you
I was going to just mirror the code lol
potS
D pisD
dnE
...
It's backwards
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement