diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-13 20:16:52 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-13 20:16:52 -0700 |
commit | fd33975aa5d47c0f25cf77e86a7b8ac02588eaa4 (patch) | |
tree | feefaef4ce9c542f11a45e026eae14d67f0a4108 /src | |
parent | 5d01ed7fc627070ff1989d645178c8df64983d47 (diff) | |
download | abc-fd33975aa5d47c0f25cf77e86a7b8ac02588eaa4.tar.gz abc-fd33975aa5d47c0f25cf77e86a7b8ac02588eaa4.tar.bz2 abc-fd33975aa5d47c0f25cf77e86a7b8ac02588eaa4.zip |
Fixing the integer print-out problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/util/abc_global.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h index de8d16ce..f81687a5 100644 --- a/src/misc/util/abc_global.h +++ b/src/misc/util/abc_global.h @@ -295,19 +295,19 @@ static inline void Abc_PrintInt( int i ) if ( i > -1000 && i < 1000 ) Abc_Print( 1, " %4d", i ); - else if ( v3 > -10.0 && v3 < 10.0 ) - Abc_Print( 1, "%4.2fk", v3 ); - else if ( v3 > -100.0 && v3 < 100.0 ) - Abc_Print( 1, "%4.1fk", v3 ); - else if ( v3 > -1000.0 && v3 < 1000.0 ) - Abc_Print( 1, "%4.0fk", v3 ); - - else if ( v6 > -10.0 && v6 < 10.0 ) - Abc_Print( 1, "%4.2fm", v6 ); - else if ( v6 > -100.0 && v6 < 100.0 ) - Abc_Print( 1, "%4.1fm", v6 ); - else if ( v6 > -1000.0 && v6 < 1000.0 ) - Abc_Print( 1, "%4.0fm", v6 ); + else if ( v3 > -9.995 && v3 < 9.995 ) + Abc_Print( 1, "%4.2fk", v3, v3 ); + else if ( v3 > -99.95 && v3 < 99.95 ) + Abc_Print( 1, "%4.1fk", v3, v3 ); + else if ( v3 > -999.5 && v3 < 999.5 ) + Abc_Print( 1, "%4.0fk", v3, v3 ); + + else if ( v6 > -9.995 && v6 < 9.995 ) + Abc_Print( 1, "%4.2fm", v6, v6 ); + else if ( v6 > -99.95 && v6 < 99.95 ) + Abc_Print( 1, "%4.1fm", v6, v6 ); + else if ( v6 > -999.5 && v6 < 999.5 ) + Abc_Print( 1, "%4.0fm", v6, v6 ); } static inline void Abc_PrintTime( int level, const char * pStr, clock_t time ) |