Fix digit formatting.  Fixes #37.