How do I round the value my function outputs