Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

734 use decimal for money #737

Merged
merged 8 commits into from
Dec 17, 2018
Merged

734 use decimal for money #737

merged 8 commits into from
Dec 17, 2018

Conversation

AndrewYHuang
Copy link
Contributor

Updated BankAccount, BookStore and Ledger exercises to use decimal for money instead of float or double.
Updated RenderNumber and Render with decimal rendering.
Updated BookStore test generator to use decimal literals for BookStore tests.

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Some small nits.

generators/Output/Rendering/RenderNumber.cs Show resolved Hide resolved
exercises/ledger/Ledger.cs Show resolved Hide resolved
exercises/book-store/BookStore.cs Show resolved Hide resolved
exercises/bank-account/BankAccount.cs Show resolved Hide resolved
@AndrewYHuang
Copy link
Contributor Author

Regarding lines 942-971 of the ci log, does the example implementation need updating? c# really doesn't like doing equals(decimal, float)

@ErikSchierboom
Copy link
Member

does the example implementation need updating

It does indeed.

@AndrewYHuang
Copy link
Contributor Author

Made all the requested changes: Updated examples and added that blank line to RenderNumber

@ErikSchierboom ErikSchierboom merged commit af9981b into exercism:master Dec 17, 2018
@ErikSchierboom
Copy link
Member

Merged! This is great work. Thanks a lot for doing this. 🎉

@AndrewYHuang AndrewYHuang deleted the 734-use-decimal-for-money branch December 18, 2018 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants