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!

28th Feb 2019, 5:20 PM
Rafael Soto
3 Réponses
+ 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
28th Feb 2019, 5:33 PM
Anna
Anna - avatar
+ 1
Well, I must bow down to you. Thanks!
28th Feb 2019, 8:12 PM
Rafael Soto
0
And the comma before the and does the separation, and is used largly in literature like that.
28th Feb 2019, 9:08 PM
Edward
Edward - avatar