Kaydet (Commit) 832c18da authored tarafından Markus Mohrhard's avatar Markus Mohrhard

change the code a bit to make it a bit more clear

this should do nearly the same as the old code
üst 1833e05a
......@@ -2252,9 +2252,13 @@ bool SvNumberformat::GetOutputString(double fNumber,
{
if (rScan.GetStandardPrec() == SvNumberFormatter::UNLIMITED_PRECISION)
{
bool bSign = ::rtl::math::isSignBitSet(fNumber) && fNumber != 0.0;
bool bSign = ::rtl::math::isSignBitSet(fNumber);
if (bSign)
{
if (!(fNumber < 0.0))
bSign = false;
fNumber = -fNumber;
}
ImpGetOutputStdToPrecision(fNumber, OutString, 10); // Use 10 decimals for general 'unlimited' format.
if (fNumber < EXP_LOWER_BOUND)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment