If you were ever thinking on how to code a calculator in microbit, then why don't you take a look in my solution?
Download project source code from GitHub: microbit-Calculator.hex
Download project source code from GitHub: microbit-Calculator.hex