How to round a number up or down with Python - Brown Surfing

How to round a number up or down with Python

Posted on: January 3rd, 2023
By: Efrain Lemus

Python has an in-built function called round()

random = 1.4

print(round(random))

Output = 1

Here’s an article with more information:

https://favtutor.com/blogs/round-down-python

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *