Skip to content

feat: add conversion logic from integer to english #5540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 4, 2024
Prev Previous commit
Next Next commit
feat: fix build issue
  • Loading branch information
sailok.chinta committed Oct 3, 2024
commit b9a7eb1f2d38e42aa33dfd293d741edaede46d6f
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static String convertToWords(int number) {
int hundredsDigit = number / 100;

if (hundredsDigit > 0) {
result = String.format("%s %s%s", BASE_NUMBERS_MAP.get(hundredsDigit), BASE_NUMBERS_MAP.get(100), (result.isEmpty() ? "" : " " + result));
result = String.format("%s %s%s", BASE_NUMBERS_MAP.get(hundredsDigit), BASE_NUMBERS_MAP.get(100), result.isEmpty() ? "" : " " + result);
}

return result;
Expand Down