A current sensor using the compensation principle, in particular for measuring direct and alternating currents, includes an entirely digital evaluation circuit for signal processing. This substantially lowers the cost of the control electronics, in particular through integration in an