I have this html, which I bring from a float:
<input asp-for="Frete" name="Frete" onKeyPress="return(MascaraMoeda(this,'.',',',event))" class="form-control" />
I would like the value of this form 0,00 and not 0 when I bring the data from the bank. If the number is filled with 82.50, it appears in this way 82.5 and I wanted it to look like 82.50, how can I proceed, I already tried it and it does not work:
ValorTotalPedido = float.Parse(pedidoFornecedor.ValorTotalPedido.ToString("N2")),