ShadowMage Posted November 16, 2012 Share Posted November 16, 2012 For starters, does anybody know the difference between Python's / and // operators? What would be the PHP equivalents to those operators? From my understanding of this page:Python's / operator is the same as PHP's / operator. x / y = x / y Python's // operator is the same as using the floor function on the result of the / operation in PHP. x // y = floor(x/y) Can anyone confirm this? Or am I way off? Link to comment Share on other sites More sharing options...
justsomeguy Posted November 16, 2012 Share Posted November 16, 2012 That sounds accurate. Link to comment Share on other sites More sharing options...
ShadowMage Posted November 19, 2012 Author Share Posted November 19, 2012 Ok, thanks for the confirmation. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now