Rounding Challenge, Solved With Godot

For this challenge I used Godot. I made a simple script to print the solutions into the output. GDScript’s round() function doesn’t seem to support precision, but I found a similar function called stepify(). From my understanding, 0.1 is a precision of 1 decimal, 0.01 is 2 decimals, and so on. If stepify() didn’t give the right answer, I’ll look around for a better way to do this, or try a different language.

Keep up the good work! Looks good, the answers are correct!

Kind regards,

Privacy & Terms