I have a database where product values are stored.
When zero numbers occur after the commas they come with zero.
I did a test and with decimal it worked, but my application uses float , so I need to work with float .
decimal numero = decimal.Parse("50,00");
string resultado = numero.ToString();
Console.Write(resultado); /* Resultado: 50,00 */
I'm using a float that allows for nulls:
float? numero = null;