• So that I may understand how floating point calculations are made under the hood

    I pointed you to jsvMathsOp in one of the other posts you'd made when I looked at my email this morning. It's in there. At the end of the day Espruino uses the entirely standard C libraries for double arithmetic and converting between doubles/ints - so you would hope there would be no differences.

    However conversion to/from Strings is done with Espruino's own functions (which happens in jsutils.c) - generally I can't use the built-in math functions for that because:

    1. They don't abide by the JS spec in more serious ways (eg. parsing of invalid strings)
    2. They bring in other parts of the C library which total maybe 50k of extra used code space, which we can't afford on a lot of platforms.
About

Avatar for Gordon @Gordon started