Skip to content

Min / Max Double ​

Outputs the smallest (Min) or largest (Max) of 2 to 5 double inputs. The number of input ports follows the Inputs setting. If any input is NaN the result follows std::fmin / std::fmax and ignores it unless every input is NaN. To pick the smallest or largest of int signals such as mode numbers or counters, use Min / Max Int.

Category: Math

Ports ​

PortKindSignalNotes
in_1Control inputReal
in_2Control inputReal
in_3Control inputRealShown when Inputs is at least 3
in_4Control inputRealShown when Inputs is at least 4
in_5Control inputRealShown when Inputs is at least 5
outControl outputReal

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
OperationChoice: Min / MaxMin—Min = output the smallest input. Max = output the largest input.op
InputsChoice: 2 / 3 / 4 / 52—How many input ports the block has (2-5).num_inputs