A theorem of F. Hirzebruch relates continued fractions to class numbers of quadratic number fields. A version for function fields of odd characteristic was established by D. R. Hayes and C. D. Gonzalez. We present here a complete treatment of the even cha