Lines Matching refs:fNumber
681 double fNumber; in SvNumberformat() local
686 if (!pISc->IsNumberFormat(sStr,F_Type,fNumber) || in SvNumberformat()
690 fNumber = 0.0; in SvNumberformat()
699 fNumber = 0.0; in SvNumberformat()
703 fLimit1 = fNumber; in SvNumberformat()
705 fLimit2 = fNumber; in SvNumberformat()
1805 void SvNumberformat::ImpGetOutputStandard(double& fNumber, String& OutString) in ImpGetOutputStandard() argument
1809 if ( fabs(fNumber) > 1.0E15 ) // #58531# war E16 in ImpGetOutputStandard()
1812 OutString = ::rtl::math::doubleToUString( fNumber, in ImpGetOutputStandard()
1817 ImpGetOutputStdToPrecision(fNumber, OutString, nStandardPrec); in ImpGetOutputStandard()
1865 void SvNumberformat::ImpGetOutputInputLine(double fNumber, String& OutString) in ImpGetOutputInputLine() argument
1868 if ( (eType & NUMBERFORMAT_PERCENT) && (fabs(fNumber) < _D_MAX_D_BY_100)) in ImpGetOutputInputLine()
1870 if (fNumber == 0.0) in ImpGetOutputInputLine()
1875 fNumber *= 100; in ImpGetOutputInputLine()
1879 if (fNumber == 0.0) in ImpGetOutputInputLine()
1885 OutString = ::rtl::math::doubleToUString( fNumber, in ImpGetOutputInputLine()
1894 short SvNumberformat::ImpCheckCondition(double& fNumber, in ImpCheckCondition() argument
1901 case NUMBERFORMAT_OP_EQ: return (short) (fNumber == fLimit); in ImpCheckCondition()
1902 case NUMBERFORMAT_OP_NE: return (short) (fNumber != fLimit); in ImpCheckCondition()
1903 case NUMBERFORMAT_OP_LT: return (short) (fNumber < fLimit); in ImpCheckCondition()
1904 case NUMBERFORMAT_OP_LE: return (short) (fNumber <= fLimit); in ImpCheckCondition()
1905 case NUMBERFORMAT_OP_GT: return (short) (fNumber > fLimit); in ImpCheckCondition()
1906 case NUMBERFORMAT_OP_GE: return (short) (fNumber >= fLimit); in ImpCheckCondition()
2006 double fNumber, sal_uInt16 nCharCount, const SvNumberFormatter& rFormatter, String& rOutString) in lcl_GetOutputStringScientific() argument
2008 bool bSign = ::rtl::math::isSignBitSet(fNumber); in lcl_GetOutputStringScientific()
2019 fNumber, rtl_math_StringFormat_E, nPrec, rFormatter.GetNumDecimalSep().GetChar(0)); in lcl_GetOutputStringScientific()
2024 bool SvNumberformat::GetOutputString(double fNumber, sal_uInt16 nCharCount, String& rOutString) con… in GetOutputString() argument
2031 double fTestNum = fNumber; in GetOutputString()
2038 lcl_GetOutputStringScientific(fNumber, nCharCount, GetFormatter(), rOutString); in GetOutputString()
2048 lcl_GetOutputStringScientific(fNumber, nCharCount, GetFormatter(), rOutString); in GetOutputString()
2060 ImpGetOutputStdToPrecision(fNumber, rOutString, nPrec); in GetOutputString()
2063 lcl_GetOutputStringScientific(fNumber, nCharCount, GetFormatter(), rOutString); in GetOutputString()
2068 sal_Bool SvNumberformat::GetOutputString(double fNumber, in GetOutputString() argument
2077 if (fNumber) in GetOutputString()
2085 ImpGetOutputStandard(fNumber, OutString); in GetOutputString()
2093 ImpGetOutputInputLine(fNumber, OutString); in GetOutputString()
2102 bool bSign = ::rtl::math::isSignBitSet(fNumber); in GetOutputString()
2104 fNumber = -fNumber; in GetOutputString()
2105 …ImpGetOutputStdToPrecision(fNumber, OutString, 10); // Use 10 decimals for general 'unlimited' for… in GetOutputString()
2106 if (fNumber < EXP_LOWER_BOUND) in GetOutputString()
2114 if (nLen > 11 || (OutString.EqualsAscii("0") && fNumber != 0.0)) in GetOutputString()
2118 OutString = ::rtl::math::doubleToUString( fNumber, in GetOutputString()
2127 ImpGetOutputStandard(fNumber, OutString); in GetOutputString()
2132 bRes |= ImpGetDateOutput(fNumber, 0, OutString); in GetOutputString()
2136 bRes |= ImpGetTimeOutput(fNumber, 0, OutString); in GetOutputString()
2140 bRes |= ImpGetDateTimeOutput(fNumber, 0, OutString); in GetOutputString()
2148 short nCheck = ImpCheckCondition(fNumber, fLimit1, eOp1); in GetOutputString()
2153 nCheck = ImpCheckCondition(fNumber, fLimit2, eOp2); in GetOutputString()
2160 IsNegativeRealNegative() && fNumber < 0.0) // ohne Vorzeichen in GetOutputString()
2161 fNumber = -fNumber; // Vorzeichen eliminieren in GetOutputString()
2163 IsNegativeRealNegative2() && fNumber < 0.0) in GetOutputString()
2164 fNumber = -fNumber; in GetOutputString()
2172 ImpGetOutputStandard(fNumber, OutString); in GetOutputString()
2211 bRes |= ImpGetDateOutput(fNumber, nIx, OutString); in GetOutputString()
2214 bRes |= ImpGetTimeOutput(fNumber, nIx, OutString); in GetOutputString()
2217 bRes |= ImpGetDateTimeOutput(fNumber, nIx, OutString); in GetOutputString()
2222 bRes |= ImpGetNumberOutput(fNumber, nIx, OutString); in GetOutputString()
2230 if (fNumber < 0) in GetOutputString()
2234 fNumber = -fNumber; in GetOutputString()
2236 double fNum = floor(fNumber); // Vorkommateil in GetOutputString()
2237 fNumber -= fNum; // Nachkommateil in GetOutputString()
2256 if (fNumber > 0.5) in GetOutputString()
2259 fNumber -= (fNumber - 0.5) * 2.0; in GetOutputString()
2265 x0 = (sal_uLong) floor(fNumber*nBasis); // z.B. 2/9 <= x < 3/9 in GetOutputString()
2342 while (fNumber > fup) in GetOutputString()
2354 if (fNumber - flow < fup - fNumber) in GetOutputString()
2381 nFrac = ((sal_uLong)floor(0.5 + fNumber * 10000000.0)); in GetOutputString()
2400 nFrac = ((sal_uLong)floor(0.5 + fNumber * in GetOutputString()
2444 bRes |= ImpNumberFill(sDiv, fNumber, k, j, nIx, NF_SYMBOLTYPE_FRAC); in GetOutputString()
2462 bRes |= ImpNumberFill(sFrac, fNumber, k, j, nIx, NF_SYMBOLTYPE_FRACBLANK); in GetOutputString()
2478 bRes |= ImpNumberFillWithThousands(sStr, fNumber, k, j, nIx, in GetOutputString()
2491 if (fNumber < 0) in GetOutputString()
2495 fNumber = -fNumber; in GetOutputString()
2497 String sStr( ::rtl::math::doubleToUString( fNumber, in GetOutputString()
2536 bRes |= ImpNumberFill(ExpStr, fNumber, k, j, nIx, NF_SYMBOLTYPE_EXP); in GetOutputString()
2564 bRes |= ImpNumberFillWithThousands(sStr,fNumber, k,j,nIx, in GetOutputString()
2579 sal_Bool SvNumberformat::ImpGetTimeOutput(double fNumber, in ImpGetTimeOutput() argument
2585 double fNumberOrig = fNumber; in ImpGetTimeOutput()
2588 if (fNumber < 0.0) in ImpGetTimeOutput()
2590 fNumber = -fNumber; in ImpGetTimeOutput()
2597 if (fNumber > 1.0E10) // zu gross in ImpGetTimeOutput()
2604 fNumber -= floor(fNumber); // sonst Datum abtrennen in ImpGetTimeOutput()
2619 fNumber = 1.0 - fNumber; // "Kehrwert" in ImpGetTimeOutput()
2620 double fTime = fNumber * 86400.0; in ImpGetTimeOutput()
2935 sal_Bool SvNumberformat::ImpGetDateOutput(double fNumber, in ImpGetDateOutput() argument
2943 fNumber += fDiff; in ImpGetDateOutput()
2944 rCal.setLocalDateTime( fNumber ); in ImpGetDateOutput()
3118 sal_Bool SvNumberformat::ImpGetDateTimeOutput(double fNumber, in ImpGetDateTimeOutput() argument
3127 fNumber += fDiff; in ImpGetDateTimeOutput()
3143 double fTime = (fNumber - floor( fNumber )) * 86400.0; in ImpGetDateTimeOutput()
3149 fNumber = floor( fNumber + 0.5) + fTime; in ImpGetDateTimeOutput()
3151 rCal.setLocalDateTime( fNumber ); in ImpGetDateTimeOutput()
3440 sal_Bool SvNumberformat::ImpGetNumberOutput(double fNumber, in ImpGetNumberOutput() argument
3446 if (fNumber < 0.0) in ImpGetNumberOutput()
3452 fNumber = -fNumber; in ImpGetNumberOutput()
3457 if ( ::rtl::math::isSignBitSet( fNumber ) ) in ImpGetNumberOutput()
3458 fNumber = -fNumber; // yes, -0.0 is possible, eliminate '-' in ImpGetNumberOutput()
3463 if (fNumber < _D_MAX_D_BY_100) in ImpGetNumberOutput()
3464 fNumber *= 100.0; in ImpGetNumberOutput()
3481 if (fNumber > _D_MIN_M_BY_1000) in ImpGetNumberOutput()
3482 fNumber /= 1000.0; in ImpGetNumberOutput()
3484 fNumber = 0.0; in ImpGetNumberOutput()
3486 if (fNumber > 0.0) in ImpGetNumberOutput()
3487 nPrecExp = GetPrecExp( fNumber ); in ImpGetNumberOutput()
3494 sStr = ::rtl::math::doubleToUString( fNumber, in ImpGetNumberOutput()
3500 sStr = ::rtl::math::doubleToUString( fNumber, in ImpGetNumberOutput()
3504 else if (fNumber == 0.0) // Null in ImpGetNumberOutput()
3511 sStr = ::rtl::math::doubleToUString( fNumber, in ImpGetNumberOutput()
3603 ImpGetOutputStandard(fNumber, sNum); in ImpGetNumberOutput()
3615 bRes |= ImpNumberFillWithThousands(sStr, fNumber, k, j, nIx, // ggfs Auffuellen mit . in ImpGetNumberOutput()