rounder: Rounding Numbers in Complex Python Objects | by Marcin Kozak | Oct, 2022
The rounder package enables you to round all numbers in any object, with just one commandrounder: Rounding numbers in Python has never been easier. Photo by Mika Baumeister on UnsplashRounding numbers seldom causes problems. In the standard library, we have function round(), math.ceil() and math.floor(), thanks to which we can use three standard types of rounding. This should suffice, shouldn’t it?Not always, actually. Imagine you have the following object that you want to round to two decimal digits:Note: In this…