Math Rounding Challenge

Hello everyone, I’m new around these part’s and just started this better math in game development course and wanted to provide my answer’s to the first challenge which was to round the figure (using Math.Floor and Math.Ceil): 6.283

Additionally we are also to work out the figure to 1 and 2 decimal places so my answers are as follows:

1a: 6 (Math.Floor)
1b: 7 (Math.Ceil)
1c: 6.3 (1 decimal place)
1d: 6.28 (2 decimal places)

1 Like

Great work @UltraFRS, you’re spot on!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms