43 nRes =
p->nByte;
break;
66 nRes =
p->nULong;
break;
82 dVal =
static_cast< double >(
p->nInt64);
89 p->pDecimal->getDouble( dVal );
125 nRes = *
p->pByte;
break;
128 nRes = *
p->pUShort;
break;
130 nRes = *
p->pULong;
break;
134 aTmp.
nChar = *
p->pChar;
goto ref;
139 aTmp.
nLong = *
p->pLong;
goto ref;
141 aTmp.
nSingle = *
p->pSingle;
goto ref;
144 aTmp.
nDouble = *
p->pDouble;
goto ref;
147 aTmp.
nInt64 = *
p->pnInt64;
goto ref;
149 aTmp.
uInt64 = *
p->puInt64;
goto ref;
167 p->nULong =
n;
break;
169 p->nSingle =
static_cast<float>(
n);
break;
172 p->nDouble =
n;
break;
175 aTmp.
pnInt64 = &
p->nInt64;
goto direct;
177 p->uInt64 =
n;
break;
185 aTmp.
pChar = &
p->nChar;
goto direct;
187 aTmp.
pByte = &
p->nByte;
goto direct;
190 aTmp.
pInteger = &
p->nInteger;
goto direct;
192 aTmp.
pLong = &
p->nLong;
goto direct;
195 aTmp.
pUShort = &
p->nUShort;
goto direct;
204 p->pOUString =
new OUString;
205 ImpCvtNum(
static_cast<double>(
n), 0, *
p->pOUString );
234 *
p->pInteger =
static_cast<sal_Int16
>(
n);
break;
241 *
p->pUShort =
static_cast<sal_uInt16
>(
n);
break;
247 *
p->pLong =
static_cast<sal_Int32
>(
n);
break;
249 *
p->pULong =
n;
break;
251 *
p->pSingle =
static_cast<float>(
n);
break;
254 *
p->pDouble =
n;
break;
258 *
p->pnInt64 =
n;
break;
260 *
p->puInt64 =
n;
break;
static void SetError(ErrCode)
void setULong(sal_uInt32 val)
sal_uInt32 GetULong() const
bool PutULong(sal_uInt32)
bool LibreOffice6FloatingPointMode()
#define ERRCODE_BASIC_NO_OBJECT
#define ERRCODE_BASIC_MATH_OVERFLOW
#define ERRCODE_BASIC_CONVERSION
double ImpCurrencyToDouble(const sal_Int64 r)
auto ImpDoubleToULong(double f)
double ImpSalUInt64ToDouble(sal_uInt64 n)
ErrCode ImpScan(const OUString &rSrc, double &nVal, SbxDataType &rType, sal_uInt16 *pLen, bool bOnlyIntntl)
SbxDecimal * ImpCreateDecimal(SbxValues *p)
void ImpCvtNum(double nNum, short nPrec, OUString &rRes, bool bCoreString=false)
constexpr auto SbxMAXCHAR
constexpr sal_uInt16 SbxMAXUINT
constexpr auto CURRENCY_FACTOR
constexpr auto SbxMAXBYTE
sal_uInt32 ImpGetULong(const SbxValues *p)
void ImpPutULong(SbxValues *p, sal_uInt32 n)