fixed bug

1. after formated, decimal part equal to zero
2. after formated, decimal part greater than 1