B: bug fixed.  C: output in %.4f