+92 332 4229 857 99ProjectIdeas@Gmail.com

Math Sign function (Vb.net)


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: