I also think Math.round() does not behave as expected
Math.round(1.3) =1 >Math.round(1.4) =1 >Math.round(1.5) =1 >Math.round(1.6) =2 >Math.round(1.0) =1
Math.round(1.5) should return 2
Math.round(1.5)
@Jean-Philippe_Rey 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.
I also think Math.round() does not behave as expected
Math.round(1.5)
should return 2