projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Output a very high-precision number
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
StringExtras.h
diff --git
a/include/llvm/ADT/StringExtras.h
b/include/llvm/ADT/StringExtras.h
index 9233d6c0cd4c57bffa35fe86a2dbfd2c7e08cf40..0596b2feb55bce03405ec613d70cc553fc6c403a 100644
(file)
--- a/
include/llvm/ADT/StringExtras.h
+++ b/
include/llvm/ADT/StringExtras.h
@@
-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.6
e", V);
return Buffer;
}