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:
They don't abide by the JS spec in more serious ways (eg. parsing of invalid strings)
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.
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.
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: