Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abchatra opened this issue Sep 17, 2018 · 0 comments

Comments

@abchatra
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant