**New course!**Every coder should learn

**Generative AI!**

0

# Remainder

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

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

+ 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