Skip to content

Modern Math Max

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › Max

Max

Returns the larger of two values; a NaN argument gives NaN.

Syntax

Max( a, b )

Examples

#import "std/numeric"
using numeric

dim as float64 a = 3.0, b = 7.0
print Max( a, b )            '' 7

dim as int32 i = 3, j = 7
print Max( i, j )            '' 7

Library: Math Library
Category: Math Library
Documented under: Nothing Becomes A Keyword

Clone this wiki locally