Convert double to byte
using System; public class Example { public static void Main() { double dbl2 = 3.99; try { byte value2 = (byte) dbl2; Console.WriteLine(value2); } catch (OverflowException) { Console.WriteLine("{0} is out of range of a byte.", dbl2); } } }