Spaces:
Runtime error
Runtime error
Create problem.md
Browse files- evaluation/problem.md +9 -0
evaluation/problem.md
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def truncate_number(number: float) -> float:
|
2 |
+
""" Given a positive floating point number, it can be decomposed into
|
3 |
+
and integer part (largest integer smaller than given number) and decimals
|
4 |
+
(leftover part always smaller than 1).
|
5 |
+
Return the decimal part of the number.
|
6 |
+
>>> truncate_number(3.5)
|
7 |
+
0.5
|
8 |
+
"""
|
9 |
+
|