Closed pelikhan closed 5 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
We have updated the relevant code. Please try again. If there is any problem, you can open the issue again
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
byMath.idiv(x, y)
.