mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Add typing and snake casing to maths/decimal_isolate.py (#7066)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user