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

2.6 Operations - add int rounding #2

Open
tomiam8 opened this issue May 31, 2017 · 0 comments
Open

2.6 Operations - add int rounding #2

tomiam8 opened this issue May 31, 2017 · 0 comments

Comments

@tomiam8
Copy link
Collaborator

tomiam8 commented May 31, 2017

Add description explaining how integers divided will be rounded, producing an integer.
E.g. 3/2 = 1.5 but gives 1
The example System.out.println(2*(5+(3/2)); needs an extra ending bracket.
Add that it mathematically should produce 13, but gives 12 (because of rounding)
Add that you can add .0 to make it a double and produce a nice double.

(tagged as bag because currently explanation is severely wrong, both by saying example gives 13 when it gives 12, and by not covering a significant part of Operations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant