I am trying to make a rounding function

Thank you guys so much, when I first posted this it didn't show up as normal code for some reason, but now it is like that. That's why I put the reply there are line breaks there.