Skip to content

Fix negative decimal handling across all languages#646

Open
jqueguiner wants to merge 1 commit intosavoirfairelinux:masterfrom
jqueguiner:fix-negative-decimals
Open

Fix negative decimal handling across all languages#646
jqueguiner wants to merge 1 commit intosavoirfairelinux:masterfrom
jqueguiner:fix-negative-decimals

Conversation

@jqueguiner
Copy link
Copy Markdown

  • Fixed num2words(-0.4) returning 'zero point four' instead of 'minus zero point four'
  • Added proper negative handling to 17 language implementations (AM, BE, BN, CE, CS, CY, HE, JA, KZ, MN, PL, RU, SK, SR, TR, UK, VI)
  • Added comprehensive test coverage for negative decimals (-0.4, -0.5, -1.4, -10.25) across all 62 supported languages
  • Fixed language-specific implementations that override to_cardinal or to_cardinal_float methods
  • Ensured negative sign preservation for decimals with zero integer part (e.g., -0.4)
  • All tests passing with linguistically correct outputs for each language

- Fixed num2words(-0.4) returning 'zero point four' instead of 'minus zero point four'
- Added proper negative handling to 17 language implementations (AM, BE, BN, CE, CS, CY, HE, JA, KZ, MN, PL, RU, SK, SR, TR, UK, VI)
- Added comprehensive test coverage for negative decimals (-0.4, -0.5, -1.4, -10.25) across all 62 supported languages
- Fixed language-specific implementations that override to_cardinal or to_cardinal_float methods
- Ensured negative sign preservation for decimals with zero integer part (e.g., -0.4)
- All tests passing with linguistically correct outputs for each language

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant