formatDutchNumber
Formats a number using Dutch locale rules and a fixed number of decimal places. The default is two decimals, which fits many financial and measurement displays.
Importing
ts
import { formatDutchNumber } from '@almighty-shogun/utils'Usage
ts
import { formatDutchNumber } from '@almighty-shogun/utils'
const amount = formatDutchNumber(1234.567, 1);Parameters
| Name | Type | Description |
|---|---|---|
value | number | Value to format. |
decimals | number | Fraction digits. Defaults to 2. |
Returns
A Dutch localized number string.
Type signature
ts
declare function formatDutchNumber(
value: number,
decimals?: number
): string;