Getting value from pre-Mod calculation

Hi guys,

I'll try explain this as clearly as possible. As part of my exercise, I successfully retrieved remainders from calculations using Mod. I am now currently stuck in doing the opposite. I want to retrieve the absolute value without remainder from that previous calculation I just mentioned. Is there a reversal calculation I could undertake? Please, no advanced methods or functions, just a mathematical way of doing it through Java. Hope this makes sense.

Thanks.

Re: Getting value from pre-Mod calculation