restrict the amount of decimal points from unlimited to 0 or 1

I can't into git so I nuked my repo and done what I should have done in the start and branched the change. This issue is duplicate of #43