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

Operators section needs some modification for division #105

Open
userimack opened this issue Dec 1, 2016 · 0 comments
Open

Operators section needs some modification for division #105

userimack opened this issue Dec 1, 2016 · 0 comments

Comments

@userimack
Copy link

In Operators ,

>>> 22.0 / 12
1.8333333333333333

To get floating result you need to the division using any of operand as floating number.

The above line is not valid for Python 3 as we don't require the operand as floating number to get a floating result. So this line should be modified.

>>> 22 / 12
1.8333333333333333

In the same article we should also add some example about floor division for python.

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

No branches or pull requests

1 participant