for(i=1,j=5.5;i<10;i++) { ... console.log("i=",i," j=",j,"Modulus j%i=",j%i); ... }

In node.js:

i= 1 j= 5.5 Modulus j%i= 0.5 i= 2 j= 5.5 Modulus j%i= 1.5 i= 3 j= 5.5 Modulus j%i= 2.5 i= 4 j= 5.5 Modulus j%i= 1.5 i= 5 j= 5.5 Modulus j%i= 0.5 i= 6 j= 5.5 Modulus j%i= 5.5 i= 7 j= 5.5 Modulus j%i= 5.5 i= 8 j= 5.5 Modulus j%i= 5.5 i= 9 j= 5.5 Modulus j%i= 5.5

In Espruino 1v61:

i= 1 j= 5.5 Modulus j%i= 0 i= 2 j= 5.5 Modulus j%i= 1 i= 3 j= 5.5 Modulus j%i= 2 i= 4 j= 5.5 Modulus j%i= 1 i= 5 j= 5.5 Modulus j%i= 0 i= 6 j= 5.5 Modulus j%i= 5 i= 7 j= 5.5 Modulus j%i= 5 i= 8 j= 5.5 Modulus j%i= 5 i= 9 j= 5.5 Modulus j%i= 5

@Frida 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.

Fridafor(i=1,j=5.5;i<10;i++) {

... console.log("i=",i," j=",j,"Modulus j%i=",j%i);

... }

In node.js:

In Espruino 1v61: