Building on @gnovice's answer, you can format the output as a string to get rid of the extra zeros.
stackoverflow.com