fix bug in getDecimalPlaces
Merge pull request #215 from iKBAHT/master

fix bug in getDecimalPlaces