Clamp/Limit the value of x
to the range of [xmin
, xmax
], where x
, xmin
, and xmax
are all integers.
No check is performed to ensure xmin
< xmax
.
(KCW, 2025-07-16)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | x | |||
integer(kind=int32), | intent(in) | :: | xmin | |||
integer(kind=int32), | intent(in) | :: | xmax |
Clamp/Limit the value of x
to the range of [xmin
, xmax
], where x
, xmin
, and xmax
are all integers.
No check is performed to ensure xmin
< xmax
.
(KCW, 2025-07-16)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int64), | intent(in) | :: | x | |||
integer(kind=int64), | intent(in) | :: | xmin | |||
integer(kind=int64), | intent(in) | :: | xmax |
Clamp/Limit the value of x
to the range of [xmin
, xmax
], where x
, xmin
, and xmax
are all reals.
No check is performed to ensure xmin
< xmax
.
(KCW, 2025-07-16)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | x | |||
real(kind=real32), | intent(in) | :: | xmin | |||
real(kind=real32), | intent(in) | :: | xmax |
Clamp/Limit the value of x
to the range of [xmin
, xmax
], where x
, xmin
, and xmax
are all reals.
No check is performed to ensure xmin
< xmax
.
(KCW, 2025-07-16)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | x | |||
real(kind=real64), | intent(in) | :: | xmin | |||
real(kind=real64), | intent(in) | :: | xmax |