diff options
Diffstat (limited to 'sc/source/ui/optdlg/calcoptionsdlg.cxx')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index 750d859af3f6..3a4764e53d8c 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -7,6 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <cmath> + #include "calcconfig.hxx" #include "calcoptionsdlg.hxx" #include "docsh.hxx" @@ -1049,7 +1053,7 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) // Handle TAN undefinedness. Use a relative epsilon for larger TAN values if (i <= 16 && i % 4 == 2) pDoc->SetValue(ScAddress(23,i,2), 0); - else if (abs(tan(d)) < 10) + else if (std::abs(tan(d)) < 10) pDoc->SetString(ScAddress(23,i,2), OUString("=IF(ABS(D") + is + "-N" + is + ")<" + sEpsilon + ",0,1)"); else |