← The arcade

Bug Hunt · difficulty 2 of 3

Bug: 0.1 + 0.2 🐛

This money calculation prints a silly floating point number. Fix it so the total shows exactly £0.30 (rounding for display is fine).

This one is part of Pro. Plenty of arcade challenges are free to play right now.

Skills: functions, exceptions

Open the arcade