Skip to content

Add feature to convert numeric words to their number representation #6195

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 18 commits into from
Mar 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix unnecessary qualifier problem
  • Loading branch information
Sufi-san committed Mar 15, 2025
commit aa82d5ca2d16bba3cc2eb6a698c57a86838404bb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private enum NumberWord {
}

public static Integer getValue(String word) {
for (NumberWord num : NumberWord.values()) {
for (NumberWord num : values()) {
if (word.equals(num.word)) {
return num.value;
}
Expand All @@ -84,7 +84,7 @@ private enum PowerOfTen {
}

public static BigDecimal getValue(String word) {
for (PowerOfTen power : PowerOfTen.values()) {
for (PowerOfTen power : values()) {
if (word.equals(power.word)) {
return power.value;
}
Expand Down