Search This Blog

Sunday, 27 February 2022

How to display Two Decimal Points Of Double Value In Xamarin Forms

 double Percentage = 89.5234234234;

<Label Text="{Binding Percentage,StringFormat='{0:F2}%'}" />
Output : 89.52%

Code Behind You Can Try this.
Percentage.ToString("0.00");

No comments:

Post a Comment

Popular Posts