// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Globalization; namespace E { class MainClass { public static string UK2DK(string num) { return decimal.Parse(num, new CultureInfo("en-US", false)).ToString("0,0.00", new CultureInfo("da-DK", false)); } public static void Main(string[] args) { string s = "1234.75"; string s2 = UK2DK(s); Console.WriteLine(s + " -> " + s2); } } }