diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-05 00:41:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-05 00:41:07 +0000 |
commit | 27db7e0472f22c9605deac34f919d284041e93a4 (patch) | |
tree | 47c2926835dcb19341a0dc07f79a1d189981e59c /include/Support/StringExtras.h | |
parent | dd76acac3f005e3ecc9a5eac8b18a1472bdaf400 (diff) |
Output a very high-precision number
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r-- | include/Support/StringExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 9233d6c0cd..0596b2feb5 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/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.6e", V); return Buffer; } |