2
I’m trying to take a typed point textbox value, and save it with decimal point, if you type 10.80, eh to store 10.8 in my variable.
I tried it this way:
decimal valorTotal = Convert.ToDecimal(hfValor.Value.Replace(".", "").Replace(",", "."), CultureInfo.InvariantCulture);
But he’s saving everything together without the point.
Didn’t you mean "if you type 10.80 it is to store 10.8"? Because according to your code, you are explicitly removing the "." typed, so the example number is 1080.
– Marcus Vinicius