frac32 in
frac32 denom
int32 div
frac32 rem
frac32 scaled
int64_t in = inlet_in;
in = in;
outlet_div = in / inlet_denom;
outlet_rem = in - outlet_div * inlet_denom;
int64_t scaled = outlet_rem;
scaled = scaled << 27;
outlet_scaled = scaled / inlet_denom;