You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi Kim,

    • Number range: Espruino uses 64 bit integers wherever possible (so +/- 2^63), however as soon as you start doing floating point stuff (even 100/50) it'll drop back to doubles, where 2^53 is probably the limit before you lose accuracy.

    • Performance: The overhead of parsing is really much higher than that of maths, so (at least at the moment) you're unlikely to notice a big difference whatever numbers you use. Trying to stick to integer values will probably help though (you can coerce doubles into integers using | - eg. x=x|0.

    • Unicode: yes, characters in Strings are only 8 bits - so if you want to do Unicode you'll have to use UTF-8. Espruino itself is completely unaware though, which could make life tricky.

About

Avatar for Gordon @Gordon started