Math.Max (Vb.net)
Math.Max() function returns the largest of two given numbers.
Input parameter data type
Math.Max() function can take any of the following data type of input parameters:
- SByte
- Byte
- Short
- UShort
- Integer
- UInteger
- Long
- ULong
- Single
- Double
- Decimal
Example
MsgBox(Math.Max(10, 20))
Return Value
The message box will display 20.
0 comments:
Post a Comment