avoid using log10 to count the number of digits
that's kind of lame,
Also release version 1.