Lines Matching refs:n

139 void ImpPutDouble( SbxValues* p, double n, sal_Bool bCoreString )  in ImpPutDouble()  argument
167 if( !pDec->setDouble( n ) ) in ImpPutDouble()
177 p->nInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDouble()
179 p->uInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDouble()
182 p->nDouble = n; break; in ImpPutDouble()
189 ImpCvtNum( (double) n, 14, *p->pOUString, bCoreString ); in ImpPutDouble()
195 pVal->PutDouble( n ); in ImpPutDouble()
201 if( n > SbxMAXCHAR ) in ImpPutDouble()
203 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCHAR; in ImpPutDouble()
205 else if( n < SbxMINCHAR ) in ImpPutDouble()
207 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCHAR; in ImpPutDouble()
209 *p->pChar = (xub_Unicode) n; break; in ImpPutDouble()
211 if( n > SbxMAXBYTE ) in ImpPutDouble()
213 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXBYTE; in ImpPutDouble()
215 else if( n < 0 ) in ImpPutDouble()
217 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDouble()
219 *p->pByte = (sal_uInt8) n; break; in ImpPutDouble()
222 if( n > SbxMAXINT ) in ImpPutDouble()
224 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXINT; in ImpPutDouble()
226 else if( n < SbxMININT ) in ImpPutDouble()
228 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMININT; in ImpPutDouble()
230 *p->pInteger = (sal_Int16) n; break; in ImpPutDouble()
233 if( n > SbxMAXUINT ) in ImpPutDouble()
235 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXUINT; in ImpPutDouble()
237 else if( n < 0 ) in ImpPutDouble()
239 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDouble()
241 *p->pUShort = (sal_uInt16) n; break; in ImpPutDouble()
243 if( n > SbxMAXLNG ) in ImpPutDouble()
245 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXLNG; in ImpPutDouble()
247 else if( n < SbxMINLNG ) in ImpPutDouble()
249 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINLNG; in ImpPutDouble()
251 *p->pLong = (sal_Int32) n; break; in ImpPutDouble()
253 if( n > SbxMAXULNG ) in ImpPutDouble()
255 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXULNG; in ImpPutDouble()
257 else if( n < 0 ) in ImpPutDouble()
259 SbxBase::SetError( SbxERR_OVERFLOW ); n = 0; in ImpPutDouble()
261 *p->pULong = (sal_uInt32) n; break; in ImpPutDouble()
263 if( n > SbxMAXSNG ) in ImpPutDouble()
265 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXSNG; in ImpPutDouble()
267 else if( n < SbxMINSNG ) in ImpPutDouble()
269 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINSNG; in ImpPutDouble()
271 else if( n > 0 && n < SbxMAXSNG2 ) in ImpPutDouble()
273 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXSNG2; in ImpPutDouble()
275 else if( n < 0 && n > SbxMINSNG2 ) in ImpPutDouble()
277 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINSNG2; in ImpPutDouble()
279 *p->pSingle = (float) n; break; in ImpPutDouble()
281 *p->pnInt64 = ImpDoubleToSalInt64( n ); break; in ImpPutDouble()
283 *p->puInt64 = ImpDoubleToSalUInt64( n ); break; in ImpPutDouble()
286 *p->pDouble = (double) n; break; in ImpPutDouble()
288 if( n > SbxMAXCURR ) in ImpPutDouble()
290 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXCURR; in ImpPutDouble()
292 else if( n < SbxMINCURR ) in ImpPutDouble()
294 SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMINCURR; in ImpPutDouble()
296 *p->pLong64 = ImpDoubleToCurrency( n ); break; in ImpPutDouble()