Hmm yeah kinda what I thought. When it converts to an int, it rounds, so lets say I put in $359.99, it spits out 4 hundreds. This is what Im using (since I was right about it crying):
Code:
double money; //, hundreds; //, fifties, twenties, tens, fives, toonies,
// loonies, quarters, dimes, nickels, pennies;
string name1 = "Jordan"; // , name2 = "", name3 = "";
Console.WriteLine("How much did " + name1 + " make?");
Console.Write("$");
money = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Converting {0:C} into change ...", money);
int hundreds;
hundreds = Convert.ToInt32(money / 100); // determine the number of hundreds
money -= hundreds * 100; // subtract all the hundreds
Console.WriteLine("Hundreds: "+ hundreds +"");