I was thinking about this, for some reason, and thought it would be good to remind myself of those little useful bits of code that you never really use much then sometimes wonder how to do them.
So my first tidbit, is to test if a number is a whole number, here is my solution, any better solution than this, answers on a postcard please.
void Main()
{
decimal decimalNumber = 4.9M;
decimal wholeNumber = 5;
Console.WriteLine(Math.Floor(decimalNumber) == decimalNumber); // Returns false;
Console.WriteLine(Math.Floor(wholeNumber) == wholeNumber); // Returns true;
}