Skip to content

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

@abchatra

Description

@abchatra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions