+92 332 4229 857 99ProjectIdeas@Gmail.com

Math Abs function (Vb.net)


Math.Abs (Vb.net)
Math.Abs() function returns the absolute value of the specified number.

Input parameter data type
Math.Max() function can take any of the following data type of input parameters:
·       SByte
·       Short
·       Integer
·       Long
·       Single
·       Double
·       Decimal
Example
MsgBox(Math.Abs(-100))

Return Value
It displays 100 in the message box.

0 comments: