C# Decimal Implicit(Byte to Decimal)
Description
Decimal Implicit(Byte to Decimal)
defines an explicit
conversion of an 8-bit unsigned integer to a Decimal.
Syntax
Decimal.Implicit(Byte to Decimal)
has the following syntax.
public static implicit operator decimal (
byte value
)
Parameters
Decimal.Implicit(Byte to Decimal)
has the following parameters.
value
- The 8-bit unsigned integer to convert.
Returns
Decimal.Implicit(Byte to Decimal)
method returns The converted 8-bit unsigned integer.
Example
The following example converts Byte values to Decimal numbers.
// w w w .ja va2 s .c o m
using System;
class Example
{
public static void Main()
{
decimal decValue = 123;
Console.WriteLine(decValue);
}
}
The code above generates the following result.