# Formats

You can control the format of the NumericTextBox by using the [`format`](https://www.telerik.com/kendo-react-ui-develop/components/inputs/api/numerictextboxprops#format) property.

It accepts string or [`NumberFormatOptions`](https://www.telerik.com/kendo-react-ui-develop/components/intl/api/numberformatoptions) parameters. When `format` is set and the input element is not focused, the value is formatted accordingly. By default, the format is set to `'n2'`.

The standard string formats are the following specifiers. Add a number after a specifier to set the precision, for example `'n2'`:

* `n`—Formats the number as a decimal number based on the locale. This format corresponds to the `decimal` value of the `style` option in `NumberFormatOptions`.
* `c`—Formats the number as a currency based on the locale.
* `p`—Formats the number as a percentage based on the locale. The value is multiplied by 100.
* `e`—Formats the number in exponential notation.

The following snippet shows how to set the decimal format by using a string and by using `NumberFormatOptions`.

```tsx
<NumericTextBox format="n2" />
<NumericTextBox format={{ style: 'decimal', minimumFractionDigits: 4 }} />
```

> Format cannot contain decimal separators or numbers. Power signs are supported.

For more information on the date and number formats KendoReact supports, refer to the [kendo-intl](https://github.com/telerik/kendo-intl/blob/master/docs/num-formatting/index.md) GitHub repository.

[Demo Source](https://demos.telerik.com/kendo-react-ui/inputs/numerictextbox/formats/func/source.txt)

## Suggested Links

* [Learn about KendoReact Free.](https://www.telerik.com/kendo-react-ui-develop/components/getting-started/free-vs-premium)

* [API Reference of the NumericTextBox Props](https://www.telerik.com/kendo-react-ui-develop/components/inputs/api/numerictextboxprops)
