# Format Number [component-header:sl-format-number] Formats a number using the specified locale and options. Localization is handled by the browser's [`Intl.NumberFormat` API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat). No language packs are required. ```html preview


``` ## Examples ### Percentages To get the value as a percent, set the `type` attribute to `percent`. ```html preview



``` ### Localization Use the `locale` attribute to set the number formatting locale. ```html preview English:
German:
Russian: ``` ### Currency To format a number as a monetary value, set the `type` attribute to `currency` and set the `currency` attribute to the desired ISO 4217 currency code. You should also specify `locale` to ensure the the number is formatted correctly for the target locale. ```html preview



``` [component-metadata:sl-format-number]