C# Decimal Implicit(Int64 to Decimal)
Description
Decimal Implicit(Int64 to Decimal)
defines an explicit
conversion of a 64-bit signed integer to a Decimal.
Syntax
Decimal.Implicit(Int64 to Decimal)
has the following syntax.
public static implicit operator decimal (
long value
)
Parameters
Decimal.Implicit(Int64 to Decimal)
has the following parameters.
value
- The 64-bit signed integer to convert.
Returns
Decimal.Implicit(Int64 to Decimal)
method returns The converted 64-bit signed integer.
Example
The following example converts Int64 values to Decimal numbers.
/*from www . jav a2 s.c o m*/
using System;
class Example
{
public static void Main()
{
// Convert value to a Decimal.
Decimal decValue = 123456789123456789;
Console.WriteLine(decValue);
}
}
The code above generates the following result.