diff options
author | Eike Rathke <erack@redhat.com> | 2023-04-21 15:42:01 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2023-04-21 21:37:15 +0200 |
commit | 90cbe03a0bd65151c197d3d4aeaf48a696f13fad (patch) | |
tree | ea65491161b2cf127c74020e43f2035f5d74488f /scaddins/source | |
parent | 1d0fadfd218b872ee5d4b07b88320c8f37667218 (diff) |
Resolves: tdf#154941 MROUND() use approxValue of division to round
Change-Id: I75394b1bdffbdadf051157e84afa06f30126fe23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150764
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'scaddins/source')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 9c9fc9718c59..a168ff7c6f59 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -555,7 +555,7 @@ double SAL_CALL AnalysisAddIn::getMround( double fNum, double fMult ) if( fMult == 0.0 ) return fMult; - double fRet = fMult * ::rtl::math::round( fNum / fMult ); + double fRet = fMult * ::rtl::math::round( ::rtl::math::approxValue( fNum / fMult)); RETURN_FINITE( fRet ); } |