0
My math skills are a little rusty. If 20//6 is 3, the remainder is 2. How do you get 1.25% out of the remainder?
>>>20//6 3 (remainder is 2) >>>1.25%0.5 .25
2 RĂ©ponses
0
we use // ( floor division) to get only quotient and ignore remainder.
so
20//6 = 3 ( here, remainder 2 is ignored)
same way,we can write
32//6 = 5
55//6 = 9
0
Modulus operator is used to find remainder.
If we divide 1.25 by .5 than, we can write:
1.25= .5*2(here .5*2=1)+.25
(here .25 is remainder, here further division approaches not followed as normal mathematical process follows, in normal mathematical process, we can write 1.25/.5 = 2.5)
hence,
1.25 divided by .5, quotient is 2 and .25 isn't divided by .5 so it is remainder.
above term is expressed by modulus sign (%),where % shows only remainder,not shows quotient.
it is expressed by
5%2 = 1
11%4 = 3
5%3 = 2
3%5 = 3
6%5 = 1
12%7 = 5
2%2 = 0
1.25%.5 = .25