mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
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
This commit is contained in:
parent
e99c66b74f
commit
6eaa457343
@ -64,7 +64,7 @@ static inline string itostr(int X) {
|
|||||||
|
|
||||||
static inline string ftostr(double V) {
|
static inline string ftostr(double V) {
|
||||||
char Buffer[200];
|
char Buffer[200];
|
||||||
snprintf(Buffer, 200, "%f", V);
|
snprintf(Buffer, 200, "%e", V);
|
||||||
return Buffer;
|
return Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user