As a Squirrel newcomer, I’m wondering whether there’s a way to convert a hex string to an integer.
my string is something like “0xff”.
I’ve tried “0xff”.tointeger(), but this returns 0, which isn’t the desired result at all.
I’m trying to convert a series of hex values contained in a file to a series of integers, and am wondering whether there’s a built in function to do this a hex byte at a time, rather than writing such a function.
Thanks for any help anyone may be able to offer,
Toby