# Restrictions

You can use the configuration options of the NumericTextBox to control the user input.

The NumericTextBox allows you to:

* [Restrict fraction length](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision#fraction-length)
* [Set value ranges](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision#value-ranges)
* [Set maximum input length](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision#maximum-input-length)

## Fraction Length

The NumericTextBox allows you to specify the number of digits after the decimal separator which can be entered by the user by setting the [`decimals`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#decimals) property. By default, the user input is not restricted.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/numerictextbox/fraction-length/source.txt)

## Value Ranges

You can control the value ranges by providing values for the [`min`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#min), [`max`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#max), and [`autoCorrect`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#autoCorrect) properties of the NumericTextBox. When `min`, `max`, and `autoCorrect` are set, the component cannot hold a value that is greater than `max` and smaller than `min`.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/numerictextbox/value-ranges/source.txt)

## Maximum Input Length

You can specify the maximum number of characters the user can type or paste in the NumericTextBox by setting the [`maxlength`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#maxlength) property. By default, the user input is not restricted.

The `maxlength` option does not restrict:

* The length of the formatted value when the component is not focused.
* Setting the component value programmatically through the [`value`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent#value) option or form control binding.
* Changing the value through the spinners, the mouse wheel, or the [keyboard navigation](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/keyboard-navigation).

> The locale-specific decimal separator and the negative sign (`-`) are included in the total allowed characters count.

The following example demonstrates how to restrict the user input by setting the `maxlength` option.

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

## Suggested Links

* [API Reference of the NumericTextBoxComponent](https://www.telerik.com/kendo-angular-ui/components/inputs/api/numerictextboxcomponent)
