2
Follows image with the results on both platforms, has some explanation or is a bug in the online compiler?
Both are console application, the only difference is that in VS is being compiled with dotNet4 while the dotnetfiddle.net dotnet4.5
var textBoxValor = "10.8";
decimal variavel = Decimal.Parse(textBoxValor.Replace(".", ","));
textBoxValor = "10.8";
var variavel2 = Decimal.Parse(textBoxValor);
As the image is not good, follow the result obtained respectively in VS and website dotnetfiddle.net
VS: variable: 10.8 variable2: 108
dotnetfiddle.net: variable: 108 variable2: 10.8
I was suspicious of this, is there any way to post a code for how to solve to have the two results equal? Hence mark as conluído. @marciano-Andrade
– rubStackOverflow
@Hstackoverflow I edited the answer, take a look.
– Marciano.Andrade
Thanks @marciano-Andrade.
– rubStackOverflow