An electric fuel float gauge uses a DC supply, but there is no alternative supply to it. It works on the principle that as the float moves it operates a wiper arm that varies the resistance in a coil and thus the current flow.

The variation in current flow then determines the position of a pointer.