This blog defines various functions of Math class in VB.NET. Math class Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions. There are many situation when we need some mathematical operation in our program, such as some trigonometric and logarithm operation.
Module Module1
Sub New()
Dim a As Double = 0
a = Math.Log(11)
Console.WriteLine("Log value of 15 = " & a)
Dim b As Integer = 0
b = Math.Pow(2, 5)
Console.WriteLine("5 to the power= " & b)
b = Math.Sqrt(5)
Console.WriteLine("squre root of 5= " & b)

Join the conversation! Your thoughts help the community grow.