Dutch Number to Words in JavaScript (nl-NL, nl-SR) โ
Use nl-NL or nl-SR when your application needs Dutch number words for invoicing, checkout flows, or legal documents that print totals in full words.
Locale codes:
nl-NL,nl-SRยท Numbering system: Short scale ยท Currency: Euro / Cent (nl-NL), Surinaamse dollar / Cent (nl-SR) ยท Script: Latin
Install โ
bash
npm install to-wordsBasic Conversion โ
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'nl-NL' });
tw.convert(100);
tw.convert(1000);
tw.convert(1000000);Currency - Euro / Cent โ
js
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });Suriname (nl-SR) โ
js
const twSR = new ToWords({ localeCode: 'nl-SR' });
twSR.convert(1234.56, { currency: true });
// Uses Surinaamse dollar / CentOrdinal Numbers โ
js
tw.toOrdinal(1);
tw.toOrdinal(10);
tw.toOrdinal(100);Locale Codes โ
| Locale code | Country | Currency | Notes |
|---|---|---|---|
nl-NL | Netherlands | Euro / Cent | Standard Dutch number wording |
nl-SR | Suriname | Surinaamse dollar / Cent | Dutch-based wording with SRD currency |
Related โ
FAQ โ
Q: Which locale code should I use for Dutch number-to-words output? Use nl-NL for Netherlands. Use nl-SR for Suriname.
Q: Does to-words support Dutch ordinal words? Yes. Both nl-NL and nl-SR include ordinal mappings.