diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-01-28 12:59:07 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-01-28 12:59:07 +0000 |
commit | 221bcc78d2a46a479ea13900a19d045a7391edab (patch) | |
tree | c8a8b26efcfe0bec2bb6b6e5ceb56beeed177406 /basic/inc | |
parent | 618b659f54380056318e9c3260ca7808999b48f3 (diff) |
INTEGRATION: CWS ab42 (1.2.72); FILE MERGED
2007/12/18 13:31:05 ab 1.2.72.1: #i84404# Applied patch to solve currency rounding problem
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/basic/sbxvar.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/inc/basic/sbxvar.hxx b/basic/inc/basic/sbxvar.hxx index 73807c3701b5..c6306290ca76 100644 --- a/basic/inc/basic/sbxvar.hxx +++ b/basic/inc/basic/sbxvar.hxx @@ -4,9 +4,9 @@ * * $RCSfile: sbxvar.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2007-04-11 12:55:39 $ + * last change: $Author: vg $ $Date: 2008-01-28 13:59:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -89,11 +89,11 @@ struct SbxINT64 if( n >= 0 ) { nHigh = (INT32)(n / (double)4294967296.0); - nLow = (UINT32)(n - ((double)nHigh * (double)4294967296.0)); + nLow = (UINT32)(n - ((double)nHigh * (double)4294967296.0) + 0.5); } else { nHigh = (INT32)(-n / (double)4294967296.0); - nLow = (UINT32)(-n - ((double)nHigh * (double)4294967296.0)); + nLow = (UINT32)(-n - ((double)nHigh * (double)4294967296.0) + 0.5); CHS(); } } |