Minimum value.
Elemental function
All the arguments must have the same type, either integer, real, or character and they all must have the same kind type parameter.
If the arguments are of the type character, the result is of type character, and the length of the result is the length of the longest argument. Otherwise, the result is the same as that of the arguments. (Some specific functions return results of a particular type.)
The value of the result is that of the smallest argument. For character arguments, the comparison is done using the ASCII collating sequence. If the length of the selected argument is shorter than that of the longest argument, the result is extended to the length of the longest argument by inserting blank characters on the right.
MIN (-9.0, 7.0, 2.0) has the value -9.0
MIN ("A", "YY") has the value "A"
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
AMIN0 | any integer 1 | default real | no |
AMIN1 | default real | default real | no |
DMIN1 | double precision real | double precision real | no |
QMIN1 | REAL(16) | REAL(16) | no |
MIN0 | any integer 1 | same as argument | no |
MIN1 | any real 1 | default integer | no |
Note: 1 A
non-default argument is an IBM extension.
|