Check out example codes for "C# double". It will help you in understanding the concepts better.

Code Example 1

double a = 1.0;
decimal b = 2.1m;
Console.WriteLine(a + (double)b);
Console.WriteLine((decimal)a + b);

Learn ReactJs, React Native from akashmittal.com