Build a Budget App - Build a Budget App

Tell us what’s happening:

I feel like this Budget App has some conflicting information in the requirements vs the tests. Please clarify which of these things are true:
• Calculate percentages from withdrawals only and not from deposits. The percentage should be the percentage of the amount spent for each category to the total spent for all categories (rounded to the nearest 10).
OR
19. The height of each bar on the create_spend_chart chart should be rounded down to the nearest 10.

Your code so far


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Budget App - Build a Budget App

it should say “rounded down” in both places

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

Okay, thanks for clarifying. (And I can post as an issue now and will also do this next time.) But just to clarify: A 7 would get rounded down to the nearest 10 which is 0?

1 Like

yes, it needs to be rounded down

Issue was reported here Build a Budget App has conflict between rounding requirement and test · Issue #64907 · freeCodeCamp/freeCodeCamp · GitHub