Minecraft wiki entry for Development_versions, associated text: Has 2 inputs and 1 output.
If A≥B, the output will be A, otherwise it will stay off – When the comparator is toggled, it will output full strength instead of A it will subtract B from A and need a comparator as input for B.
Replacement for the capacitor.
Whichever side gives the bigger signal will be considered signal B.