Name

Max Function — System.Math

Synopsis

Math.Max(val1, val2)
val1, val2 required; any

A numeric data type or expression

Return Value

Returns the maximum of val1 and val2, in the wider datatype of the two numbers

Description

Returns the maximum of val1 and val2.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.