Output a very high-precision number
[oota-llvm.git] / include / llvm / ADT / StringExtras.h
index 9233d6c0cd4c57bffa35fe86a2dbfd2c7e08cf40..0596b2feb55bce03405ec613d70cc553fc6c403a 100644 (file)
@@ -80,7 +80,7 @@ static inline std::string itostr(int X) {
 
 static inline std::string ftostr(double V) {
   char Buffer[200];
-  snprintf(Buffer, 200, "%e", V);
+  snprintf(Buffer, 200, "%20.6e", V);
   return Buffer;
 }