r/learnjava • • Oct 30 '16

What the HELL is a modulo?

I have a test tomorrow, in the test one of the questions will be to seperate a number from a 3 digit number, say I have 641, I need to know how to print out 6,4 and 1 seperately.

What the hell do I do ? The teacher is so bad I couldn't understand a word she said and neither did my class, we already complained about her but this isn't the issue, the issue is that I have no easy answers on the internet for what the modulo is.

Why does doing (n/100)%10; print out the hundred digit ? I have no idea how this works, please go easy on me.

0 Upvotes

31 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Oct 30 '16

I'm telling you people say I understand computing fast, math is pretty mediocre to me but I can't, warp my head around this. If I don't understand the modulo right now will I have problems later in my programming career...??

21

u/mattibdtx Oct 30 '16

If you are unable to solve problems with the amount of help being offered to you in this thread, yes you will have problems later in your career.

4

u/joshuaherman Oct 31 '16

Lol this.

1

u/toilet_--gay_reddit Oct 31 '16

I felt kinda bad for him until I read some of his other comments.