Decimal..::..ToByte Method
Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static byte ToByte( decimal value )
<TemplateAttribute> _ Public Shared Function ToByte ( _ value As Decimal _ ) As Byte
[TemplateAttribute] public: static unsigned char^ ToByte( Decimal^ value )
Parameters
- value
- Type: System..::..Decimal
The decimal number to convert.
Return Value
An 8-bit unsigned integer equivalent to value.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | value is less than MinValue or greater than MaxValue. |