C# Decimal Implicit(UInt32 to Decimal)
Description
Decimal Implicit(UInt32 to Decimal)
defines an explicit
conversion of a 32-bit unsigned integer to a Decimal.
Syntax
Decimal.Implicit(UInt32 to Decimal)
has the following syntax.
public static implicit operator decimal (
uint value
)
Parameters
Decimal.Implicit(UInt32 to Decimal)
has the following parameters.
value
- The 32-bit unsigned integer to convert.
Returns
Decimal.Implicit(UInt32 to Decimal)
method returns The converted 32-bit unsigned integer.
Example
The following example converts UInt32 values to Decimal numbers.
// w ww.j av a 2 s.com
using System;
class Example
{
public static void Main()
{
// Convert value to a Decimal.
Decimal decValue = 123456789;
Console.WriteLine(decValue);
}
}
The code above generates the following result.