That's what I'm now using (I changed from using the original Math library a while back). JavaScript does have some interesting differences from the C implementation though (eg NaN and Infinity handling), so I'd have to be careful to only use it in the right circumstances - and also careful that it wasn't one of the functions that uses malloc for no good reason - it's not as easy as a simple swap.
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.
That's what I'm now using (I changed from using the original Math library a while back). JavaScript does have some interesting differences from the C implementation though (eg
NaN
andInfinity
handling), so I'd have to be careful to only use it in the right circumstances - and also careful that it wasn't one of the functions that usesmalloc
for no good reason - it's not as easy as a simple swap.