C# assuming floating point literals are of type double?
<p>I'm following along in my C# textbook and it says that "C# assumes that all floating point literals are of type double." I get what this is saying, but I'm not quite sure how to apply the fix to the example program I am working on.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Text;

namespace CoinCounter
{
    class Program
    {
        static void Main(string[] args)
        {
            int quarters;
            int dimes;
            int nickels;
            int pennies;
            float myTotal = 0F;

            Console.Out.WriteLine("How many quarters are in the jar?");
            quarters = int.Parse(Console.In.ReadLine());

            Console.Out.WriteLine("How many dimes are in the jar?");
            dimes = int.Parse(Console.In.ReadLine());

            Console.Out.WriteLine("How many nickels are in the jar?");
            nickels = int.Parse(Console.In.ReadLine());

            Console.Out.WriteLine("How many pennies are in the jar?");
            pennies = int.Parse(Console.In.ReadLine());

            myTotal = (quarters * .25) + (dimes * .10) + (nickels  * .05) + (pennies * .01);
            Console.Out.Write("\nTotal: " + myTotal.ToString("c"));

            Console.In.ReadLine();
        }
    }
}
</code></pre>

<p>It comes back saying: "Cannot implicitly convert type 'double' to 'float'." When I try to put that whole myTotal line is parenthesis and add an F to the end is says it's looking for a ';'.</p>

<p>So my question is, how do I use float? How can I add an F on the end of this? I've also tried casting (float) in front of it in different ways. </p>

<p>Thank you for your time.</p>
