can someone explain?
Hello, that's the code I have a problem with. The problem is, that it says I can't convert a double in decimal but the number is a decimal so what should I do? class Program { public delegate decimal Rechenoperation (decimal x, decimal y); static void Main(string[] args) { Rechenoperation plus = (x, y) => { return x + y; }; decimal result = decimal.Parse(plus(3.534M, 3)); Console.WriteLine(result); I also already tried this:: decimal result = decimal.Parse(plus(decimal.Parse(3.534M), 3)); and if I write it like this it says I can't convert from decimal to a string, but which string there are only numbers:: Rechaenoperation plus = (x, y) => { return x + y; }; decimal num1 = 3.534M; decimal result = decimal.Parse(plus(num1, 3)); Console.WriteLine(result); Please explain what is going on with c# or what I don't understand (what my mistake is).