Multiple-valued logic is an alternative to traditional binary logic,where the the two states, either on or off, is replaced by severallogical values. One promising way of realizing multiple-valued circuits is by using voltage-mode floating-gates with a recharge latching scheme. For the multiple-valued floating-gate circuits to yield the correct result, it is very important that the gain is accurate. In this master thesis we present a novel floating-gate inverter with varactor feedback that serves as a gain correction device, in that we can correct the gain by altering the varactor capacitance. We will be discussing the benefits and the limitations of the device, as well as describing it's performance in different circuit environments by software simulation.