Return rates on the weekly report are always rounded down
OPS-902: Return rates on the weekly sheet are too low
Reported by: Mireille Cole (Operations, Birdsong Outdoor) · Priority: Low · Component: Weekly reports
Symptom
Every Monday I compare the return rate column of the weekly report with my own spreadsheet. The report is always a bit lower: Trail Boots shows 42 and my sheet says 42.9; Headlamp shows 33 against my 33.3. The counts of lines sold and returned match my sheet exactly, only the percentage differs (my calculation is in the attached file).
Steps to reproduce
Run the return rate report on the sample data and compare the percentage column with returned lines divided by sold lines.
Expected
The percentage of sold lines that were returned, rounded to one decimal: Trail Boots 42.9, Rain Shell 12.5, Wool Socks 0.0, Day Pack 100.0, Headlamp 33.3.
Actual
Trail Boots 42, Rain Shell 12, Wool Socks 0, Day Pack 100, Headlamp 33.
© AICodingRound. Ticket text for practice on this site; see Terms.
How it works
- 1Fix the problemin a real codebase.
- 2Use your ownAI, or none.
- 3Submit, then answera few short questions.
- 4Get your gradeand feedback.