Remainder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Remainder

the remainder of 1.25%0.5 isn't 0? if not why?

25th Mar 2018, 1:31 PM
Julio Hsu Chu
Julio Hsu Chu - avatar
2 Answers
+ 3
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 1.25%.5 = .25
25th Mar 2018, 2:42 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 1
1.25 divided by 0.5 is 2.5. It’s not a whole number, meaning there is a remainder. The remainder is 0.25 because, since the quotient is 2.5, you have to take half of 0.5
25th Mar 2018, 1:36 PM
Ariela
Ariela - avatar