本文整理匯總了C#中System.Numerics.Complex.Implicit操作符的典型用法代碼示例。如果您正苦於以下問題:C# Complex.Implicit操作符的具體用法?C# Complex.Implicit怎麽用?C# Complex.Implicit使用的例子?那麽, 這裏精選的操作符代碼示例或許可以為您提供幫助。您也可以進一步了解該操作符所在類System.Numerics.Complex
的用法示例。
在下文中一共展示了Complex.Implicit操作符的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1:
ulong longValue = 951034217;
System.Numerics.Complex c1 = longValue;
Console.WriteLine(c1);
輸出:
(951034217, 0)
示例2:
uint value = 197461;
System.Numerics.Complex c1 = value;
Console.WriteLine(c1);
輸出:
(197461, 0)
示例3:
ushort shortValue = 421;
System.Numerics.Complex c1 = shortValue;
Console.WriteLine(c1);
輸出:
(421, 0)
示例4:
float singleValue = 1.032e-08f;
System.Numerics.Complex c1 = singleValue;
Console.WriteLine(c1);
輸出:
(1.03199999657022E-08, 0)
示例5:
sbyte sbyteValue = -12;
System.Numerics.Complex c1 = sbyteValue;
Console.WriteLine(c1);
輸出:
(-12, 0)
示例6:
int intValue = 1034217;
System.Numerics.Complex c1 = intValue;
Console.WriteLine(c1);
輸出:
(1034217, 0)
示例7:
short shortValue = 16024;
System.Numerics.Complex c1 = shortValue;
Console.WriteLine(c1);
輸出:
(16024, 0)
示例8:
double doubleValue = 1.032e-16;
System.Numerics.Complex c1 = doubleValue;
Console.WriteLine(c1);
輸出:
(1.032E-16, 0)
示例9:
byte byteValue = 122;
System.Numerics.Complex c1 = byteValue;
Console.WriteLine(c1);
輸出:
(122, 0)
示例10:
long longValue = 951034217;
System.Numerics.Complex c1 = longValue;
Console.WriteLine(c1);
輸出:
(951034217, 0)