Skip to content

Modern Math Min

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

Home › Math Library › Math Library › Min

Min

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

Syntax

Min( a, b )

Examples

#import "std/numeric"
using numeric

dim as float64 a = 3.0, b = 7.0
print Min( a, b )            '' 3

dim as int32 i = 3, j = 7
print Min( i, j )            '' 3 -- generic over the numeric types

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

Clone this wiki locally