Hmm. This returns correctly 16:
16&(Math.pow(2,4)+1-1);
This incorrectly 15:
parseInt(Math.pow(2,4));
Sacha
@Sacha 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.
Hmm. This returns correctly 16:
16&(Math.pow(2,4)+1-1);
This incorrectly 15:
parseInt(Math.pow(2,4));
Sacha