4

In other languages you can use things like 0xFF = 255. I am working on a decoding project and I would like to be able to quickly convert from hexadecimal to decimal.

I was wondering if there was a very quick way to do this, besides writing a hexadecimal convertor?

Nebula
  • 6,614
  • 4
  • 20
  • 40

1 Answers1

5

It turns out you can! It's fairly simple. Essentially all you have to do is this:

((join "0x" "<number>") + 0)
See it in Scratchblocks!

You will, however, have to manually create a program to convert from decimal to hexadecimal.

Nebula
  • 6,614
  • 4
  • 20
  • 40
  • Haha, cool. I come here and remember, oh, yes, I need to accept my answer! Except I still have to wait an hour lol. :P – Nebula Oct 11 '15 at 17:39