✅ Trying to round a value but there's seemingly no elegant way to do it?

I've tried two versions (seen here: https://paste.ofcode.org/HXfb53WkUWfRCz8mvTpQTg)

But the first (more elegant solution) doesn't work and the second seems unnecessarily backwards?
Was this page helpful?