Fixing #9 by adding an option for trailing zeros