From 27db7e0472f22c9605deac34f919d284041e93a4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Oct 2003 00:41:07 +0000 Subject: [PATCH] Output a very high-precision number git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8856 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/StringExtras.h | 2 +- include/llvm/ADT/StringExtras.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 9233d6c0cd4..0596b2feb55 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; } diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 9233d6c0cd4..0596b2feb55 100644 --- 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.6e", V); return Buffer; }