Mono Class Library: System.Convert Overview | MembersSystem.Convert.ToSByte Method |
Converts a float to a sbyte . [Edit]
|
value as a sbyte , rounded to the nearest integer. [Edit]
Type Reason OverflowException value is greater than sbyte.MaxValue or less than sbyte.MinValue. [Edit]
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)(float).
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0