Who is @stux ?
C either rounds towards 0 on integer division or maybe does something implementation specific if the denominator is negative?
anyway
the "correct" definition of integer / and % is:
a / b = x, a % b = r, where
a = bx + r
0 <= r < |b|
(remainder is always positive, which requires rounding towards negative infinity)
*math is made up and you can define division however you want, unless you want algebra to work, then there's some rules you gotta follow
Lives in India🇮🇳
Loves to talk to people from around the world and know eachother 😀
Fascinated by every living thing and prefers to spend time with nature❤️💚
have edgy and invasive humour but is totally docile 😛
Lost my right eye to Glaucoma :(
Shifted from @mur2501