I don't know how it counts, for example: 87 modulo 16 = 7 How does it count, someone will tell me? Is it about some padding to 16?
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamyeeezooo wrote:This is the fraction remainder - the numerator of the fraction - of dividing an integer by an integer; 87/16 = 5 + 7/16, so you drop the whole number and take the numerator of the proper fraction (part less than one) - it must be a rational (non-decimal) fraction.I don't know how it counts, for example: 87 modulo 16 = 7 How does it count, someone will tell me? Is it some padding to 16?
yeeezooo wrote:You can count it anyway.hmm, I don't know if I understood you correctly or if it is that 87/16 = 5.4375
so we take the integer part which is 5.
And 5 * 16 is 80, so 87 is missing 7 and hence 87 modulo 16 = 7?
ok i think
yeeezooo wrote:And of course it is used in all kinds of digital meters, the capacity of which - the maximum counted quantity - is necessarily finite.And secondly, what can it be used for in electronics?
Quarz wrote:This is the fraction remainder - the numerator of the fraction - of dividing an integer by an integer; 87/16 = 5 + 7/16, so you drop the whole number and take the numerator of the proper fraction (part less than one) - it must be a rational (non-decimal) fraction.
yeeezooo wrote:This is the rational and proper fraction (less than one).Quarz wrote:This is the fraction remainder - the numerator of the fraction - of dividing an integer by an integer; 87/16 = 5 + 7/16, so you drop the whole number and take the numerator of the proper fraction (part less than one) - it must be a rational (non-decimal) fraction.
I'm beginning to understand what you wrote, but it's hard to find the rational fraction (read quickly) of 0.4375 with the denominator 16, it will be as you wrote 7/16 .
yeeezooo wrote:Each method is good as it leads - without unnecessary "bends" - to the goal.Therefore, can my method be considered as reliable, because in this example it has proven to be successful, but will it always be like this and is it not easier? Do you have a link to the theory of this modulo somewhere?
By the way, how did you look for this number, i.e. how quickly and by what method did you transform the remainder of 0.4375 to a fraction with a denominator of 16?
Jeżeli a i d są liczbami naturalnymi, gdzie d nie jest zerem, można udowodnić, że istnieją unikalne liczby całkowite q i r, gdzie a = qd + r
i 0 ≤ r < d. Liczba q zwana jest ilorazem, zaś r resztą.
Przykłady
* Kiedy dzielimy 13 przez 10, 1 jest ilorazem, a 3 jest resztą, gdyż 13 = 1×10 + 3.
* Kiedy dzielimy 26 przez 4, 6 jest ilorazem, a 2 jest resztą, gdyż 26 = 6×4 + 2.
* Kiedy dzielimy 56 przez 7, 8 jest ilorazem, a 0 jest resztą, gdyż 56 = 7×8 + 0.
jeżeli a i d są liczbami całkowitymi, gdzie d nie jest zerem, wtedy reszta jest liczbą całkowitą taką, że a = qd + r dla pewnego q i przy
0 ≤ |r| < |d|. Kiedy definiujemy w ten sposób istnieją dwie możliwe reszty.
Na przykład, dzielenie −42 przez −5 może być wyrażone jako
−42 = 9×(−5) + 3
albo
−42 = 8×(−5) + (−2).
Tak więc resztą jest 3 lub −2.
Ta dwuznaczność wartości reszty nie jest niczym zagadkowym. W przypadku powyżej, reszta ujemna jest uzyskiwana poprzez odjęcie 5, które stanowi d. Ta metoda sprawdza się również dla innych liczb całkowitych. Dzieląc przez d, jeśli dodatnią resztą jest r1, a ujemną r2, wtedy
r1=r2+d.