Software engineering and personal development

Month: July 2022

How to Round Numbers Using Negative Numbers in Python

If you are working with many numbers in Python, you probably need to do some rounding to cut off some digits that you may not need at all.

For example, let us say that you are calculating an average salary in a company and the average number that you have found is around 54,334.218

This may not be a number that can look good in a final report that you want to submit to someone. It would help if you instead rounded it.

Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑