diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-01 22:06:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-01 22:06:00 +0000 |
commit | 6eaa457343c3682d68938893ffd689d9737e090f (patch) | |
tree | 1c50da819ec0e46120f03ae59dff01b7ac6cf7e6 | |
parent | e99c66b74fe04aeebeeb1b0c50ed0ea5ba45d371 (diff) |
Print floating point numbers in expodential form so that small numbers don't get truncated, which broke the health benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1086 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/StringExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/StringExtras.h b/include/llvm/Support/StringExtras.h index 22d02c3140..569ae4240b 100644 --- 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; } |