For the implementation itself you probably want the jsvMathsOp function which handles the maths for JS variable types: https://github.com/espruino/Espruino/blob/13bffedc7e17ed15d7adc62a9517dfc9f6f0cb4f/src/jsvar.c#L3329
jsvMathsOp
@Gordon started
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.
For the implementation itself you probably want the
jsvMathsOp
function which handles the maths for JS variable types: https://github.com/espruino/Espruino/blob/13bffedc7e17ed15d7adc62a9517dfc9f6f0cb4f/src/jsvar.c#L3329