# Math class: Square root, absolute value, Pi and Power : Math Function « Development « VB.Net

Home
VB.Net
 1 2D 2 Application 3 Class 4 Data Structure 5 Data Types 6 Database ADO.net 7 Date Time 8 Development 9 Event 10 File Directory 11 Generics 12 GUI 13 Internationalization I18N 14 Language Basics 15 LINQ 16 Network Remote 17 Reflection 18 Security 19 Thread 20 Windows Presentation Foundation 21 Windows System 22 XML 23 XML LINQ
 VB.Net » Development » Math Function Screenshots
Math class: Square root, absolute value, Pi and Power
 ```  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                         ```
Related examples in the same category
 1 Math: square root 2 To the Power 3 Power ^ in VB.net 4 Calculating compound interest 5 Math.Max Demo 6 Rnd Demo 7 Square Root in Math package 8 Round in Math 9 Sign in Math 10 Atan and Tan 11 Asin and Sin 12 Acos and Cos 13 Power in VB 14 Math: Min, Max, Exp, Ceil, Round and Log10 15 Math.Abs Method returns the absolute value of a Decimal number. 16 Math.Atan returns the angle whose tangent is the specified number. 17 Math.BigMul produces the full product of two 32-bit numbers. 18 Math.Ceiling returns the smallest integral that is greater than or equal to the decimal number. 19 Math.Cos returns the cosine of the specified angle. 20 Math.Cosh returns the hyperbolic cosine of the specified angle. 21 Math.DivRem calculates the quotient and returns the remainder in an output parameter. 22 Math.DivRem calculates the quotient of two integers and returns the remainder in an output parameter. 23 Math.E Field represents the natural logarithmic base, specified by the constant, e. 24 Math.Exp returns e raised to the specified power. 25 Math.IEEERemainder returns the remainder resulting from the division 26 Math.Log returns the natural (base e) logarithm of a specified number. 27 Math.Log returns the logarithm of a specified number in a specified base. 28 Math.Log10 returns the base 10 logarithm of a specified number. 29 Math.Max returns the larger of two 8-bit unsigned integers. 30 Math.Min returns the smaller of two 8-bit unsigned integers. 31 Math.Pow returns a specified number raised to the specified power. 32 Math.Round rounds a decimal value to the nearest integral value. 33 Math.Round rounds a decimal value to a specified number of fractional digits. 34 Math.Round rounds a decimal to a specified number of fractional digits. 35 Math.Round (Double) rounds a double-precision floating-point value to the nearest integral value. 36 Rounds a double-precision floating-point value to a specified number of fractional digits. 37 Rounds a double-precision floating-point value to the specified number of fractional digits 38 Math.Sign returns a value indicating the sign of a decimal number. 39 Math.Tanh Returns the hyperbolic tangent of the specified angle. 40 Math.Truncate Calculates the integral part of a specified decimal number.