So im trying to convert the string to a double but everytime it converts the string its missing the dot. This is for a currency calculataor.
My code:
private void listBoxLeft_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var valuta = listBoxLeft.SelectedItem.ToString();
var valutaCurrencySplit = valuta.Split(':');
var currency = valutaCurrencySplit[1];
currency = currency.Replace(" ", String.Empty);
Problem starts here...
double finalNumber = Convert.ToDouble(finalString);
Console.WriteLine(finalNumber);
}
finalNumber ends as 74361, but should be 7.4361