Add typing and snake casing to maths/decimal_isolate.py (#7066)

This commit is contained in:
Saksham Chawla 2022-10-13 16:17:52 +05:30 committed by GitHub
parent 7ad6c64029
commit 9b0909d654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ https://stackoverflow.com/questions/3886402/how-to-get-numbers-after-decimal-poi
"""
def decimal_isolate(number, digit_amount):
def decimal_isolate(number: float, digit_amount: int) -> float:
"""
Isolates the decimal part of a number.