本文整理匯總了VB.NET中System.Numerics.Complex.Explicit操作符的典型用法代碼示例。如果您正苦於以下問題:VB.NET Complex.Explicit操作符的具體用法?VB.NET Complex.Explicit怎麽用?VB.NET Complex.Explicit使用的例子?那麽, 這裏精選的操作符代碼示例或許可以為您提供幫助。您也可以進一步了解該操作符所在類System.Numerics.Complex
的用法示例。
在下文中一共展示了Complex.Explicit操作符的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: numbers
Dim numbers() As Decimal = { Decimal.MinValue, -18.35d, 0d, 1893.019d,
Decimal.MaxValue }
For Each number In numbers
Dim c1 As System.Numerics.Complex = CType(number,
System.Numerics.Complex)
Console.WriteLine("{0,30} --> {1}", number, c1)
Next
輸出:
-79228162514264337593543950335 --> (-7.92281625142643E+28, 0) -18.35 --> (-18.3500003814697, 0) 0 --> (0, 0) 1893.019 --> (1893.01904296875, 0) 79228162514264337593543950335 --> (7.92281625142643E+28, 0)
示例2: numbers
Dim numbers() As BigInteger = {
CType(Double.MaxValue, BigInteger) * 2,
BigInteger.Parse("901345277852317852466891423"),
BigInteger.One }
For Each number In numbers
Dim c1 As System.Numerics.Complex = CType(number,
System.Numerics.Complex)
Console.WriteLine(c1)
Next
輸出:
(Infinity, 0) (9.01345277852318E+26, 0) (1, 0)