For you folks who write code for a living, check out The Daily WTF. For you non-developers, move along... there's nothing to see here. You wouldn't understand why this is so damn hilarious:
Oh lordy, I nearly wet myself reading that. <geek />
//return whether a double is negative
bool IsNegative(double n)
{
string nStr = n.ToString();
if (nstr.IndexOf('-', 0, 1)) return true;
return false;
}
Oh lordy, I nearly wet myself reading that. <geek />
From:
no subject
From:
no subject