he-002
1.000
Proposed solution
```python
def truncate_number(number: float) -> float:
if number >= 0:
integer_part = int(number)
decimal_part = number - integer_part
return decimal_part
else:
raise ValueError("The number must be positive.")
```Test output (stdout)
. [100%] 1 passed in 0.01s
System prompt
You are an expert programmer. Solve the task exactly as specified. Output your solution as fenced code blocks using the required file name(s) and the exact function/type signatures requested. Prefer correctness; do not include prose outside code unless asked.