fix zero problem in real number to string conversion