| commit | f613caedb14fb514c9ef26c42830f8a6c12c53ef | [log] |
|---|---|---|
| author | Eike Rathke <erack@redhat.com> | Sun May 23 14:29:30 2021 +0200 |
| committer | Eike Rathke <erack@redhat.com> | Sun May 23 16:24:30 2021 +0200 |
| tree | 6d2c152421b7f107e73d54c519d32b49bc81ab75 | |
| parent | 172d5649106d8602ee258b7002b78459edd4855c [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
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index dc30df4..632b046 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 ) &&