Fortran Wiki min

Description

Returns the argument with the smallest (most negative) value.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = min(a1, a2 [, a3, ...])

Arguments

• a1 - The type shall be integer or real.
• a2, a3, … - An expression of the same type and kind as a1.

Return value

The return value corresponds to the minimum value among the arguments, and has the same type and kind as the first argument.