I am having a small question, I pass a 0,05 decimal
value to a A
variable of type string
. After this variable receives this value, it converts ,
to point .
, which is 0.05
After I do this replace, I convert the data to type Decimal
, my B
variable that receives the variable A
gets inteira 5
.
var openingCostValue = Convert.ToDecimal(model.openingCost.Replace(",", "."));
What I want is to keep the value that was converted to replace.