Log In  

Yo @zep,

By default, split(str) has a go at each split element to see if it's possibly a number, presumably using tonum(elem). You can disable this with split(str, false) or split(str, delim_or_width, false).

Unfortunately, unlike tonum(str, 1), you can't hint the format of the number, like I could by saying tonum("fe", 1) to get 254 aka 0xfe. I tried replacing the split() boolean arg with a number, but it didn't seem to get passed through.

I don't know if you're actually using tonum() inside split(), so maybe I'm assuming too much, but if you are, could you just pass any numeric conversion flag direct to it? That'd let us convert hex directly to numbers with something like split("baadf00d", 4, 1) returning {-17747,-483}.

P#128642 2023-04-17 03:27 ( Edited 2023-04-17 03:28)

feels consistent + 1!

P#128645 2023-04-17 06:16

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-26 09:35:41 | 0.006s | Q:9