Math.Sign (Vb.net)
Math.Sign() function returns the sign indicating that specified value.
Input parameter data type
Math.Sign() function can take any of the following data type of input parameters:
- SByte
- Short
- Integer
- Long
- Single
- Double
- Decimal
Example1
MsgBox(Math.Sign(-100))
Return Value of example1
The message box will display -1.
Example2
MsgBox(Math.Sign(100))
Return Value of example2
The message box will display 1.
0 comments:
Post a Comment