I have a method that receives values of type string
and performs the conversion to other types, my problem is that when converting an information to double
it changes its precise value that this does not happen. For example, I get "19.30". I use the method below to convert and I end up getting the value "1930.00", or something like that.
I get "19.30" in the variable x.
val = Convert.ToDouble(x);
The value of val for example: "19300.0" but I need the value to be the same as in string : "19.30", because I will use it to do several calculations with he. If you can convert to currency it also works as long as the format is the same as I get as string
Is there a way to do this without changing the value?