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
Option 3a not using exceptions, always returns a value:
Int32 Convert(Double d) { if (d <= (double)Int32.MinValue) return Int32.MinValue; else if (d >= (double)Int32.MaxValue) return Int32.MaxValue; else return (Int32)d; }