Allow zeroPadding option.
Round length calculation to 6 places to account for JS Math.