All MicroEvals
Complete the following Python function: ```python def trunc...
Create MicroEval
Header image for Complete the following Python function:

```python
def trunc...

Complete the following Python function: ```python def trunc...

Prompt

Complete the following Python function: ```python def truncate_number(number: float) -> float: """ Given a positive floating point number, it can be decomposed into and integer part (largest integer smaller than given number) and decimals (leftover part always smaller than 1). Return the decimal part of the number. >>> truncate_number(3.5) 0.5 """ ```

Answer guidance

Canonical solution (function body): return number % 1.0