i need to round a double as it ends with 49 and 99 at the end, fx the number 2138 should be rounded to 2149, and number 2150 should be rounded to 99, which makes it numbers 1-48 goes to 49 and 50-98 goes to 99 everything i found it was about rounding decimal to .99, It has to be double because of the value is already rounded to 0 decimal places with this code:
DecimalFormat decimalFormat = new DecimalFormat("#");
String fromattedDouble = decimalFormat.format(xxx);