I’m trying to display a floating point value on the micro:bit’s screen. When I use the Show Number block after performing a division operation (e.g. (analog read pin P0) x 3 / 1023 ), the screen scrolls something like 12 decimal places. Is there a way I can round or truncate the decimal places to something more reasonable (e.g. 2 places)?
Hummm… I taught we did this automatically. What is your code?
This is what I’m using: https://makecode.microbit.org/_b9i2Yd5YkVqe