X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Fmath_utils.py;h=dd8f33a2e4bf781b658d4ae7266e4a3035412dbb;hb=985dfef399576a0db52c158931c3afd273e96842;hp=8ac6b10a6f9c258d382328959e58496b89cb327e;hpb=e4bb7822b61a24184e9296bdace25043ec60865e;p=pyutils.git diff --git a/src/pyutils/math_utils.py b/src/pyutils/math_utils.py index 8ac6b10..dd8f33a 100644 --- a/src/pyutils/math_utils.py +++ b/src/pyutils/math_utils.py @@ -218,6 +218,7 @@ def truncate_float(n: float, decimals: int = 2): Args: n: the float to truncate + decimals: how many decimal places are desired? >>> truncate_float(3.1415927, 3) 3.141