Understanding Math Functions in Visual Basic 2012

In Visual Basic 2012 , we can write code to perform arithmetic operations using standard mathematical operators. However, for more complex mathematical calculations, we need to use the built-in math functions in Visual Basic 2012. There are numerous built-in mathematical functions in VB 2012 which we introduced them one by one in lesson 14. The syntax of Math functions in Visual Basic 2012 is

Math.Function(argument)

For example, the Abs function returns the absolute value of a number. The syntax is:

Math. Abs (number)

* The Math keyword here indicates that the function belong to the Math class. However, not all mathematical functions belong to the Math class.

Read more about using Math functions in Visual Basic 2012 lesson 14