Great! Looks like there's an issue with Espruino's conversion of strings into integers. For instance +"0x10" in the browser works fine but returns NaN in Espruino.
For now I'd use parseInt("ff",16), but I'll file a bug for it
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Great! Looks like there's an issue with Espruino's conversion of strings into integers. For instance
+"0x10"
in the browser works fine but returns NaN in Espruino.For now I'd use
parseInt("ff",16)
, but I'll file a bug for it