Limiting floats to two decimal points in Python

If you want to round a floating number to n decimal place in Python, you can use in-built function round() as shown in the below example –

Leave a Reply

Close Menu