projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e99c66b
)
Print floating point numbers in expodential form so that small numbers don't get...
author
Chris Lattner
<sabre@nondot.org>
Thu, 1 Nov 2001 22:06:00 +0000
(22:06 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 1 Nov 2001 22:06:00 +0000
(22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1086
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/StringExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/StringExtras.h
b/include/llvm/Support/StringExtras.h
index 22d02c3140a9bd279869f5295df22d751576240a..569ae4240b913080d6925aade746be73a7258ce6 100644
(file)
--- a/
include/llvm/Support/StringExtras.h
+++ b/
include/llvm/Support/StringExtras.h
@@
-64,7
+64,7
@@
static inline string itostr(int X) {
static inline string ftostr(double V) {
char Buffer[200];
- snprintf(Buffer, 200, "%
f
", V);
+ snprintf(Buffer, 200, "%
e
", V);
return Buffer;
}