Blazor format an InputType of Numeric
问题 Would anyone know how to format a Numeric type to look like 100.10? Currently if the value is 100.10 it will display as 100.1 tried @bind-value:format with C2, 0:0.##, I'm new to Blazor so if anyone could point me in the right direction it would be appreciated. <BSBasicInput InputType="InputType.Number" @bind-Value="@Amount" step="0.01" /> 回答1: If you bind to a decimal it seems it will keep the number of decimals you specify for the value, even training zeros. @page "/" <EditForm Model=