summaryrefslogtreecommitdiff
path: root/svtools/source/numbers
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2001-10-16 10:16:13 +0000
committerEike Rathke <er@openoffice.org>2001-10-16 10:16:13 +0000
commit5d1cecf7427ac7f2bfca51ddd77471a2f2d8bff5 (patch)
tree84e0dbe572f48e188bc8c0a6fd21f69c97685d9a /svtools/source/numbers
parentf8a8dce57b0dc51d7992fb2a86365acc44641b55 (diff)
#93239# ImpGetNumberOutput: eliminate '-' of -0.0
Diffstat (limited to 'svtools/source/numbers')
-rw-r--r--svtools/source/numbers/zformat.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svtools/source/numbers/zformat.cxx b/svtools/source/numbers/zformat.cxx
index 7981daf11937..0049ab1b9db0 100644
--- a/svtools/source/numbers/zformat.cxx
+++ b/svtools/source/numbers/zformat.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: zformat.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: er $ $Date: 2001-08-30 09:39:42 $
+ * last change: $Author: er $ $Date: 2001-10-16 11:16:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3055,7 +3055,11 @@ BOOL SvNumberformat::ImpGetNumberOutput(double fNumber,
fNumber = -fNumber;
}
else
+ {
bSign = FALSE;
+ if ( SolarMath::IsSignBitSet( fNumber ) )
+ fNumber = -fNumber; // yes, -0.0 is possible, eliminate '-'
+ }
const ImpSvNumberformatInfo& rInfo = NumFor[nIx].Info();
if (rInfo.eScannedType == NUMBERFORMAT_PERCENT)
{