Besonderhede van voorbeeld: -7498145159950848132

Metadata

Author: Common crawl

Data

English[en]
In the following example, the dividend is 20 (10100 in binary) and the divider is 3 (11 in binary): 10100 - 11 * 2^2 = 10100 - 1100 = 1000 Result := 100 1000 - 11 * 2^1 = 1000 - 110 = 10 Result := 110 Initially, 11 * 2^2 is the highest value that is less or equal to the dividend, so we subtract that value from the dividend and we set bit 2 of the result because we subtracted the divisor multiplied by two to the power of 2.
Spanish[es]
En el siguiente ejemplo, el dividendo es 20 (10100 en binario) y el divisor is 3 (11 en binario): 10100 - 11 * 2^2 = 10100 - 1100 = 1000 Result := 100 1000 - 11 * 2^1 = 1000 - 110 = 10 Result := 110 Inicialmente, 11 (en binario) * 2^2 (100 en binario) es el valor más grande que es menor o igual que el dividendo, así que restamos ese valor del dividendo y encendemos el bit 2 del resultado porque restamos el divisor multiplicado por dos elevado a la 2.

History

Your action: