@@ -244,6 +244,10 @@ tw.convert(452.36, { currency: true, ignoreDecimal: true });
244244// Ignore zero currency
245245tw .convert (0.36 , { currency: true , ignoreZeroCurrency: true });
246246// "Thirty Six Paise Only"
247+
248+ // Show fractional unit even when zero (string input preserves .00)
249+ tw .convert (' 452.00' , { currency: true , includeZeroFractional: true });
250+ // "Four Hundred Fifty Two Rupees And Zero Paise Only"
247251```
248252
249253** Functional — ` toCurrency() ` shorthand:**
@@ -689,6 +693,7 @@ interface ToWordsOptions {
689693 ignoreDecimal? : boolean ; // Default: false
690694 ignoreZeroCurrency? : boolean ; // Default: false
691695 doNotAddOnly? : boolean ; // Default: false
696+ includeZeroFractional? : boolean ; // Default: false
692697 currencyOptions? : {
693698 name: string ;
694699 plural: string ;
@@ -800,13 +805,14 @@ detectLocale('en-GB'); // custom fallback if detection fails
800805
801806### Converter Options
802807
803- | Option | Type | Default | Description |
804- | -------------------- | ------- | --------- | ------------------------------------------------------------ |
805- | ` currency ` | boolean | false | Convert as currency with locale-specific formatting |
806- | ` ignoreDecimal ` | boolean | false | Ignore fractional part when converting |
807- | ` ignoreZeroCurrency ` | boolean | false | Skip zero main currency (e.g., show only "Thirty Six Paise") |
808- | ` doNotAddOnly ` | boolean | false | Omit "Only" suffix in currency mode |
809- | ` currencyOptions ` | object | undefined | Override locale's default currency settings |
808+ | Option | Type | Default | Description |
809+ | ----------------------- | ------- | --------- | ------------------------------------------------------------------------------------------------ |
810+ | ` currency ` | boolean | false | Convert as currency with locale-specific formatting |
811+ | ` ignoreDecimal ` | boolean | false | Ignore fractional part when converting |
812+ | ` ignoreZeroCurrency ` | boolean | false | Skip zero main currency (e.g., show only "Thirty Six Paise") |
813+ | ` doNotAddOnly ` | boolean | false | Omit "Only" suffix in currency mode |
814+ | ` includeZeroFractional ` | boolean | false | When input is a string like ` "123.00" ` , include "And Zero Paise" even though the decimal is zero |
815+ | ` currencyOptions ` | object | undefined | Override locale's default currency settings |
810816
811817### Common Options Example
812818
0 commit comments