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}.
[Please log in to post a comment]