mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Add typing to maths/floor.py (#7056)
This commit is contained in:
parent
74494d433f
commit
32ff33648e
|
@ -3,7 +3,7 @@ https://en.wikipedia.org/wiki/Floor_and_ceiling_functions
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def floor(x) -> int:
|
def floor(x: float) -> int:
|
||||||
"""
|
"""
|
||||||
Return the floor of x as an Integral.
|
Return the floor of x as an Integral.
|
||||||
:param x: the number
|
:param x: the number
|
||||||
|
|
Loading…
Reference in New Issue
Block a user