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
The message box will display 100.
0 comments:
Post a Comment