# .NET MAUI Numeric Mask

To validate the user input as numeric values, use the `NumericMaskedEntry`.

The numeric mask displays the following values:

* Percent values.
* Decimal values.
* Currency (culture-aware).
* Fixed point values.

Through the `Mask` property you can specify the exact format of the expected input. The following table lists the supported formats and the resulting type of the value with each format:

| Mask           | Numeric Type | Resulting .NET Type |
| -------------- | ------------ | ------------------- |
| `"C"` or `"c"` | Currency     | `decimal`           |
| `"D"` or `"d"` | Standard     | `long (int64)`      |
| `"F"` or `"f"` | Fixed-point  | `decimal`           |
| `"G"` or `"g"` | Fixed-point  | `decimal`           |
| `"N"` or `"n"` | Decimal      | `decimal`           |
| `"P"` or `"p"` | Percent      | `double`            |
| `Other`        | Decimal      | `decimal`           |

For the full list of supported masks (except for the `"E"` and `"X"` ones), refer to the [Standard Numeric masks](https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings) MSDN article.

The following example demonstrates how to set the `RadNumericMaskedEntry` with the `Currency` value:

```XAML
<telerik:RadNumericMaskedEntry Mask="C" AutomationId="numericMaskC"/>
```

The image below shows the end result.

![.NET MAUI NumericMaskedEntry](https://www.telerik.com/maui-ui/documentation/assets/a6a6764bb2599e378e375d3d3c28f4ea/maskedentry_numeric.png)

> For the MaskedEntry Numeric Mask examples, go to the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and navigate to MaskedEntry -> Mask Types category.

## See Also

* [Getting Started](https://www.telerik.com/maui-ui/documentation/controls/maskedentry/getting-started)
* [Validation](https://www.telerik.com/maui-ui/documentation/controls/maskedentry/validation)
* [Null Values Support](https://www.telerik.com/maui-ui/documentation/controls/maskedentry/value#null-value-support})
* [Events](https://www.telerik.com/maui-ui/documentation/controls/maskedentry/events)
* [Globalization](https://www.telerik.com/maui-ui/documentation/controls/maskedentry/globalization)
