DexterInd/pxt-giggle

Validate the use of division operator in this package for MakeCode update

Closed this issue · 1 comments

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

  • If the change to floating point division doesn't matter you can ignore and close this issue.
  • If you want integer division then update your package typescript code to use integer division. Change a/b to Math.idiv(a, b)

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 giggle.ts

Fixed although it would have been fine without. Just playing it safe.
See #16