2019-01-20 10:33:55 +0200 | received badge | ● Student (source) |
2019-01-18 20:49:00 +0200 | asked a question | weird behavior quotient operator Hello, i am calculating the quotient of a really big number using the operator // the fact is: if the big number is in a variable, let's say x, and i write x//2, it won't work (it'll return x/2). But if i copy/paste the big number and write //2 at the end, it works. I don't understand it. I wanted to post a picture as example, but it seems that i need more karma to do it... so instead i put a copy/paste of the problem at the end of this post. The variable's name is "test", so i first print it, then do the //2; as you can see it doesn't work, i got the same number with /2 at the end. Then i copy/paste the number and use //2 again and here it works. The point is: when i use it in a programm, i can't copy/paste the number, it'll be in a variable. And then it fails. |