vb System.Math.Pow类(方法)实例源码

下面列出了vb System.Math.Pow 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
Public Module Example
   Public Sub Main
      Dim value As Integer = 2
      For power As Integer = 0 To 32
         Console.WriteLine("{0}^{1} = {2:N0} (0x{2:X})", _
                           value, power, CLng(Math.Pow(value, power)))
      Next
   End Sub
End Module

作者:VB程序    项目:Syste   
' 导入命名空间
Imports System.IO

Module Module1

    Sub Main()
        Console.WriteLine("Absolute value of -1 is " & Math.Abs(-1))
        Console.WriteLine("Square Root of 144 is " & Math.Sqrt(144))
        Console.WriteLine("Value for PI is " & Math.PI)
        Console.WriteLine("10 raised to the power of 2 is " & Math.Pow(10, 2))
        
    End Sub

End Module


问题


面经


文章

微信
公众号

扫码关注公众号