<img width="522" height="118" alt="Image" src="https://github.com/user-attachments/assets/a5244264-085d-4581-9cd3-6c4d1bc62edb" /> The current avg function uses float64 calculations to ensure precision, but the return type may not be float64. We need to add an extra cast step.