To parse it properly I'd have to actually have code to parse the number directly from a JsVar. Not sure what to do about that really - it could return NaN I guess, or maybe parsing from JsVar is the way to go.
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.
Hmm, actually it's really difficult to do nicely. For instance:
To parse it properly I'd have to actually have code to parse the number directly from a JsVar. Not sure what to do about that really - it could return NaN I guess, or maybe parsing from JsVar is the way to go.