Convert.ToInt32 vs Convert.ToDouble
So I was working throught the C# course and trying to find the area of a circle test, and kept getting stuck on the second test run where it used 6.4. Here is my original code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { const double pi = 3.14; double radius = Convert.ToInt32(Console.ReadLine()); double radiusSquare = Convert.ToInt32(radius*radius); Console.WriteLine(radiusSquare*pi); //your code goes here } } } In this I kept using Convert.ToInt32, and then learned that I needed to use Convert.ToDouble. What exactly is the difference between the two? I was under the impression from the lessons that convert.Toint32 was like converting to decimals, and kept getting confused as to why it kept failing. With this, how exactly does the Convert.ToThing command work?