using System.Globalization;
public static void Main()
string origNr = "293,34";
float floatNr = float.Parse(origNr, new CultureInfo("fi-FI"));
double doubleNr = double.Parse(origNr, new CultureInfo("fi-FI"));
decimal decimalNr = decimal.Parse(origNr, new CultureInfo("fi-FI"));
string stringNr = origNr;
Console.WriteLine("Byte type is NOT ok");
Console.WriteLine("Int type is NOT ok");
Console.WriteLine("Float type is ok: " + floatNr);
Console.WriteLine("Double type is ok: " + doubleNr);
Console.WriteLine("Decimal type is ok: " + decimalNr);
Console.WriteLine("Boolean type is NOT ok");
Console.WriteLine("String type is ok: " + stringNr);