fix exponential code in to-string