English: Through an iterated subtraction of d from n as long as the difference is positive, calculation of the remainder of the Euclidean division of n by d, called n modulo d.
Translation in JavaScript.
/* To open a Firefox window dedicated to JavaScript code: Shift + F4 */r=n=72;d=20;/* Initial pair of positive integers: the dividend and the divisor of the Euclidean division. The two variables n and r have the same initial value, because the instruction n = 72 returns 72 (of type Number). And n.toString(10) would return the dividend writing in decimal numeral system (of base 10).*/n=" "+n+" modulo "+d+" = ";/* The initial pair is stored in n as object String. The space as first character of the string is of type String. So the first sign + is a symbol of concatenation of strings of characters. Variable n that follows is implicitly converted in n.toString(10) : one or several digits that come after the first space, and before another space.*/while(r>=d)r-=d;/* Loop : calculation of the remainder of the division. With r >= d equivalent to ! (r < d) (the contrary of r < d), and r -= d equivalent to r = r-d*/n+r;/* Result of type String, where the decimal writing of remainder r of the division comes after the previous value of n. Keyboard shortcut in Firefox to execute the code: Ctrl + L */
verbreitet werden – vervielfältigt, verbreitet und öffentlich zugänglich gemacht werden
neu zusammengestellt werden – abgewandelt und bearbeitet werden
Zu den folgenden Bedingungen:
Namensnennung – Du musst angemessene Urheber- und Rechteangaben machen, einen Link zur Lizenz beifügen und angeben, ob Änderungen vorgenommen wurden. Diese Angaben dürfen in jeder angemessenen Art und Weise gemacht werden, allerdings nicht so, dass der Eindruck entsteht, der Lizenzgeber unterstütze gerade dich oder deine Nutzung besonders.
Ergänze eine einzeilige Erklärung, was diese Datei darstellt.
Through an iterated subtraction of d from n as long as the difference is positive, calculation of the remainder of the Euclidean division of n by d, called n modulo d.
Diese Datei enthält weitere Informationen (beispielsweise Exif-Metadaten), die in der Regel von der Digitalkamera oder dem verwendeten Scanner stammen. Durch nachträgliche Bearbeitung der Originaldatei können einige Details verändert worden sein.
Breite
660
Höhe
825
Datei:Iterated subtraction of d until modulo d.svg