Bug report: Doesn't Convert Large Decimal Numbers to Hex
JosephB10 opened this issue · comments
Describe the bug
Entering a large decimal number into the input and then selecting "To Hex" will come out with a response that doesn't make sense. It seems to convert every individual number into something?
To Reproduce
Paste "581695969015253365094191591547859387620042736036246486373595515576333693" into the input and select the option "To Hex."
The correct answer should be
"54484D7B31375F6A7535375F346E5F307264316E3472795F62343533357D"
but instead it gives
"35 38 31 36 39 35 39 36 39 30 31 35 32 35 33 33 36 35 30 39 34 31 39 31 35 39 31 35 34 37 38 35 39 33 38 37 36 32 30 30 34 32 37 33 36 30 33 36 32 34 36 34 38 36 33 37 33 35 39 35 35 31 35 35 37 36 33 33 33 36 39 33"
I'm not sure what it's doing wrong even? Based on highlighting the value in Input
the corresponding highlight suggests that it converts each individual number, but even then it's not into hex.
5 != 0x35
54 != 0x35 So where is it getting 35 from?
**Version Info **
- Version: 10.7.0
- Compile time: 09/02/2024 16:02:09 UTC
- User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 - Link to reproduce
ps. I love the website, great job on it.
Hey @JosephB10 I think you're looking for the 'To Base' function, instead of 'To Hex'. See an example fixed recipe here:
You've correctly identified what 'To Hex' does, which is a string operation based on characters not an integer operation like 'To Base'.