System.Convert.ToSByte Method

Converts the value of the specified double-precision floating-point number to an equivalent 8-bit signed integer.

value, rounded to the nearest 8-bit signed integer. Ifvalueis halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

Type Reason OverflowException valueis greater than sbyte.MaxValue or less than sbyte.MinValue.

Prior to the conversion, if *value* is halfway
between two whole numbers, it is rounded to the nearest even integer. For
example, 4.5 is rounded to 4, and 5.5 is rounded to 6.

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToInt16(object)(double).