0
Why make something simple (// and %) so confusing with ONE word in the wrong place?
In the example given to explain // and % the following text precedes the code: "This code shows that 6 goes into 20 three times, and the remainder when 1.25 is divided by 0.5 is 0.25." Now, look at the word 'and' after 'three times,' -- it makes it sound as if the sentence following 'three times,' IS related to the previous sentence ... when in fact it is NOT. It is meant to illustrate the % operator using a DIFFERENT set of numbers. I was going nuts trying to figure out where they got 1.25 (or 0.5) from the example just used for //. If they just insert a 'period' or 'whereas' between the two sentences instead of "and', it would make perfect sense!
3 Respostas
+ 6
The code shows two things: 6 goes into 20 three times, AND the remainder when 1.25 is divided by 0.5 is 0.25. English is not my first language, but that makes perfect sense to me
+ 1
Well, I must bow down to you. Thanks!
0
And the comma before the and does the separation, and is used largly in literature like that.