How to round a number in Python? Subash Chandran 18th October 2021 Leave a Comment >>> import math >>> math.ceil(5.2) 6 >>> math.ceil(5) 5 >>> math.ceil(-0.5) 0 Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also How to record youtube cc in Python? Snippets How to round a number in Python? Change font size A Decrease font size. A Reset font size. A Increase font size.