Set Maximum Number of Decimal Digits in Xamarin Numeric Entry (SfNumericTextBox)

19 May 20211 minute to read

The maximum number of digits to be displayed after the decimal point can be specified by using MaximumNumberDecimalDigits property.


The MaximumNumberDecimalDigits property can be provided with positive value only.

<syncfusion:SfNumericTextBox x:Name="numericTextBox" Value="123.456" MaximumNumberDecimalDigits="2" />
SfNumericTextBox numericTextBox=new SfNumericTextBox();
numericTextBox.Value = 123.456;
this.Content = numericTextBox;

Display the textbox value

See also

How to set the MaximumDecimalDigits in SfNumericTextBox