textpieces icon indicating copy to clipboard operation
textpieces copied to clipboard

Add tools: hexadecimal to decimal and vice-versa

Open ZtereoHYPE opened this issue 1 year ago • 0 comments

This mimics Boop's hex to dec and vice-versa conversion, maintaining other strings, newlines, and spaces.

Example IO:

Hexadecimal to decimal

Input:

0x123 123 
0xABC abc
0x456555 hello

0x123zz

Output:

291 291
2748 2748
4547925 hello

0x123zz

Decimal to hexadecimal

Input:

291 291
2748 2748
4547925 hello

0x123zz

Output:

0x123 0x123
0xabc 0xabc
0x456555 hello

0x123zz

ZtereoHYPE avatar Jun 25 '23 18:06 ZtereoHYPE