I\'m curious as to the best way to convert a double to an int. Runtime safety is my primary concern here (it doesn\'t necessarily have to be the fastest method, but that wou
I would use option two. Short, clean and it works.
You could also look into the BigInteger class in .Net4, and you wouldn't have to check for overflow.
double foo = 1; BigInteger bigint = new BigInteger(foo);