Seeed-Studio / pxt-grove

A Microsoft MakeCode package for Seeed Studio Grove module
https://makecode.microbit.org/pkg/seeed-studio/pxt-grove
MIT License
36 stars 47 forks source link

Move to Math.idiv #5

Closed pelikhan closed 5 years ago

pelikhan commented 6 years ago

The new version of MakeCode introduces floating point arithmetic. This is a breaking change that requires a fix in your sources: replace existing division, eg. x / y by Math.idiv(x, y).

pelikhan commented 6 years ago
abchatra commented 6 years ago

MakeCode for the micro:bit update is coming soon. Part of the update is floating point support. Existing MakeCode website supports only integer division which means 1/2 = 0 With this update 1/2 = 0.5

Action for you: We have automatically detected this package uses division operator. Please take one of the following actions

You can test your package on the update here: https://makecode.microbit.org/beta

All the details on the update: https://makecode.com/blog/microbit/v1-beta

div found in main.ts

Pillar1989 commented 5 years ago

We have updated the relevant code. Please try again. If there is any problem, you can open the issue again