New to Telerik UI for WinUI? Download free 30-day trial

Numeric MaskType

The purpose of this tutorial is to show you how to use Numeric mask with RadMaskedInput. The numeric mask is used when you need to display:

  • Percent values.

  • Decimal values.

  • Currency (culture-aware).

  • Fixed point values.

Standard Numeric Masks

Full list of the supported masks (except "E" and "X") can be found in the following MSDN article: Standard Numeric masks.

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

When used in a data-binding scenario, the bound property in the viewmodel needs to match the type of the resulting value (or its corresponding nullable equivalent).

See Also

In this article
Not finding the help you need?