fixed two bugs

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