Skip to content

Commit d4476d0

Browse files
JakeGerbercclauss
andauthored
Update maths/decimal_isolate.py
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 6ddfbe6 commit d4476d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maths/decimal_isolate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def decimal_isolate(number, digitAmount):
1313
>>> decimal_isolate(35.345, 2)
1414
0.34
1515
>>> decimal_isolate(35.345, 3)
16-
0.345"""
16+
0.345
17+
"""
1718
if digitAmount > 0:
1819
return round(number - int(number), digitAmount)
1920
return number - int(number)

0 commit comments

Comments
 (0)