24th May 2017, 6:41 PM
ashish
ashish - avatar
4 Respuestas
+ 1
Using the division operator // removes the part after decimal point, ie it converts the float into an integer. So if we use / we get 3.33
24th May 2017, 6:44 PM
Maaz
Maaz - avatar
+ 1
Because 6 divides into 20, 3 times. Since it's integer division, it 'must' return an integer value. 6, 12, 18 Imagine asking the question: How many times can you fit 6 under the value 20? You'd answer: 3 times. Since 3 times 6 is 18. It technically removes the decimal.
24th May 2017, 6:52 PM
Sapphire
0
It outputs the quotient, not the remainder. Quotient is a fancy word for the number before the decimal. If you want the remainder as well as the quotient(decimal) you would do... >>>20/6 3.33333
24th May 2017, 6:50 PM
Matthew Whitaker
Matthew Whitaker - avatar
0
If I am not wrong, this division is called the floor division. You can look it up in wiki for a better explanation.
25th May 2017, 3:30 AM
superwyg
superwyg - avatar