r/javahelp • • Mar 27 '21

Solved 1%2=1?

i dontunderstand the results when the nr to the right is larger

ofc 4%3=1

but why 3%4=3

2 Upvotes

13 comments sorted by

View all comments

-7

u/macetfromage Mar 27 '21

after googling i got the impression that % removes the decimals but i think its in math

1

u/morhp Professional Developer Mar 28 '21

It is math that can be used to remove decimals.