I'd like make my program to be even more precise and to consider that there aren't coins for 1,2,7 values (only 5,10,20,50,100..), so there is a rule called rounding to five forints.
Example:
111,112 -> 110
113,114 -> 115
116,117 -> 115
118,119 -> 120
My question is which function should I use in JAVA to reach my goal and get the right rounded value?