Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jlnr
Copy link

@jlnr jlnr commented Dec 11, 2017

I've avoided using 2.x ** 2.x == 4.x in the examples because readers might mistake ** for exponentiation. 2 ** 2 == 4 happens to be true in many programming languages, but for other reasons.

And I think it is clearer now that ** and // truncate the operands, not the result. This is different from e.g. Pascal's div operator for integer division.

I've also avoided using 2.x ** 2.x == 4.x in an example because readers might mistake `**` for exponentiation -- `2 ** 2 == 4` happens to be true in most languages, but for other reasons.
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.

1 participant