fixed bug

1. after formated, decimal part equal to zero
2. after formated, decimal part greater than 1
Merge pull request #10 from leafshi/master

Fixed two bugs:
1. If rounded decimal part was equal to zero, no decimal would be displayed
2. If rounded decimal part was greater than 1, the integer part would not be incremented by the amount.