25#include <rtl/math.hxx>
40 nRes =
p->nChar;
break;
80 sal_Int64 val =
p->nInt64;
115 nRes =
static_cast<sal_Unicode>(rtl::math::round(
p->nSingle ));
127 p->pDecimal->getDouble( dVal );
141 nRes =
static_cast<sal_uInt8>(rtl::math::round( dVal ));
178 nRes = *
p->pChar;
break;
181 aTmp.
nByte = *
p->pByte;
goto ref;
186 aTmp.
nLong = *
p->pLong;
goto ref;
188 aTmp.
nULong = *
p->pULong;
goto ref;
191 aTmp.
nUShort = *
p->pUShort;
goto ref;
193 aTmp.
nSingle = *
p->pSingle;
goto ref;
196 aTmp.
nDouble = *
p->pDouble;
goto ref;
199 aTmp.
nInt64 = *
p->pnInt64;
goto ref;
201 aTmp.
uInt64 = *
p->puInt64;
goto ref;
222 p->nInteger =
n;
break;
226 p->nSingle =
n;
break;
229 p->nDouble =
n;
break;
233 p->nInt64 =
n;
break;
235 p->uInt64 =
n;
break;
242 aTmp.
pByte = &
p->nByte;
goto direct;
244 aTmp.
pULong = &
p->nULong;
goto direct;
247 aTmp.
pUShort = &
p->nUShort;
goto direct;
256 p->pOUString =
new OUString(
n );
258 *
p->pOUString = OUString(
n );
270 *
p->pChar =
n;
break;
275 *
p->pInteger =
n;
break;
278 *
p->pUShort =
static_cast<sal_uInt16
>(
n);
break;
280 *
p->pLong =
static_cast<sal_Int32
>(
n);
break;
282 *
p->pULong =
static_cast<sal_uInt32
>(
n);
break;
284 *
p->pSingle =
static_cast<float>(
n);
break;
287 *
p->pDouble =
static_cast<double>(
n);
break;
291 *
p->pnInt64 =
n;
break;
293 *
p->puInt64 =
n;
break;
static void SetError(ErrCode)
void setChar(sal_Unicode val)
sal_Unicode GetChar() const
bool PutChar(sal_Unicode)
bool LibreOffice6FloatingPointMode()
#define ERRCODE_BASIC_NO_OBJECT
#define ERRCODE_BASIC_MATH_OVERFLOW
#define ERRCODE_BASIC_CONVERSION
sal_Unicode ImpGetChar(const SbxValues *p)
void ImpPutChar(SbxValues *p, sal_Unicode n)
ErrCode ImpScan(const OUString &rSrc, double &nVal, SbxDataType &rType, sal_uInt16 *pLen, bool bOnlyIntntl)
SbxDecimal * ImpCreateDecimal(SbxValues *p)
constexpr auto SbxMAXCHAR
constexpr auto SbxMINCHAR
constexpr auto CURRENCY_FACTOR