frac32 in
int32.positive Multiply
int32.positive Divide
int32 maxtimes
frac32 out
float64_t ratio;
int32_t max = inlet_Multiply >= (inlet_maxtimes * inlet_Divide)
? (inlet_maxtimes * inlet_Divide)
: inlet_Multiply;
float64_t inf = inlet_Divide;
float64_t anf = max;
ratio = anf / inf;
outlet_out = inlet_in * ratio;