For the micro:bit all arithmetic is performed on integers, rather than floating point. This also is true when simulating in the browser.
Operators
The following JavaScript operators are supported for the micro:bit.
The following JavaScript operators are supported for the micro:bit.
For the micro:bit all arithmetic is performed on integers, rather than floating point. This also is true when simulating in the browser.