diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-17 19:15:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-17 19:16:04 +0200 |
commit | b65de20c31f470dfe8bf6dc32ecd68a36072bf50 (patch) | |
tree | 6416c02188c3fb6e0520effa8c7dfb34f39c3da9 /svl | |
parent | 07797559153a330ca66ade146b47f2a2b0657c64 (diff) |
Remove old cruft #if 0 debugger test cases
Change-Id: I95ae76820a434ac1d295bea21f9bf77dab9a7e6e
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index da7b8c00a909..734af6294825 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1947,31 +1947,6 @@ void SvNumberformat::ImpGetOutputStdToPrecision(double& rNumber, OUString& rOutS // Make sure the precision doesn't go over the maximum allowable precision. nPrecision = ::std::min(UPPER_PRECISION, nPrecision); -#if 0 -{ - // debugger test case for ANSI standard correctness - OUString aTest; - // expect 0.00123 OK - aTest = ::rtl::math::doubleToUString( 0.001234567, - rtl_math_StringFormat_G, 3, '.', true ); - // expect 123 OK - aTest = ::rtl::math::doubleToUString( 123.4567, - rtl_math_StringFormat_G, 3, '.', true ); - // expect 123.5 OK - aTest = ::rtl::math::doubleToUString( 123.4567, - rtl_math_StringFormat_G, 4, '.', true ); - // expect 1e+03 (as 999.6 rounded to 3 significant digits results in - // 1000 with an exponent equal to significant digits) - // Currently (24-Jan-2003) we do fail in this case and output 1000 - // instead, negligible. - aTest = ::rtl::math::doubleToUString( 999.6, - rtl_math_StringFormat_G, 3, '.', true ); - // expect what? result is 1.2e+004 - aTest = ::rtl::math::doubleToUString( 12345.6789, - rtl_math_StringFormat_G, -3, '.', true ); -} -#endif - // We decided to strip trailing zeros unconditionally, since binary // double-precision rounding error makes it impossible to determine e.g. // whether 844.10000000000002273737 is what the user has typed, or the |