summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-05-23 14:29:30 +0200
committerEike Rathke <erack@redhat.com>2021-05-23 16:24:30 +0200
commitf613caedb14fb514c9ef26c42830f8a6c12c53ef (patch)
tree6d2c152421b7f107e73d54c519d32b49bc81ab75
parent172d5649106d8602ee258b7002b78459edd4855c (diff)
Resolves: tdf#136794 Unlimit decimals for ROUND()
Change-Id: I8a00cbea0fab3ef301def81f52febd4ad03bd3f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116018 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
-rw-r--r--sc/source/core/tool/interpr2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index dc30df4be07e..632b04643a28 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -966,9 +966,7 @@ void ScInterpreter::RoundNumber( rtl_math_RoundingMode eMode )
{
sal_Int16 nDec = GetInt16();
double fX = GetDouble();
- if ( nGlobalError != FormulaError::NONE || nDec < -20 || nDec > 20 )
- PushIllegalArgument();
- else
+ if (nGlobalError == FormulaError::NONE)
{
if ( ( eMode == rtl_math_RoundingMode_Down ||
eMode == rtl_math_RoundingMode_Up ) &&