diff options
author | Winfried Donkers <winfrieddonkers@libreoffice.org> | 2013-11-21 13:31:46 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-11-21 11:27:48 -0600 |
commit | d8a023d41ec85538bc0103c063ee722e1de67c2f (patch) | |
tree | 783760e53d51690d422e0424ef062231ec50d799 /sc | |
parent | fa2498cb3edbc5d5383af3466979f63e46ecc1c4 (diff) |
fdo#71350 fix incorrect calculation of Excel function CONFIDENCE.T
Change-Id: I94202bebcc7deded51636f4bf7f203254a31931f
Reviewed-on: https://gerrit.libreoffice.org/6751
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index 2f534f618249..515530bf4b9e 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -2309,7 +2309,7 @@ void ScInterpreter::ScConfidenceT() if (sigma <= 0.0 || alpha <= 0.0 || alpha >= 1.0 || n < 1.0) PushIllegalArgument(); else - PushDouble( sigma * GetTInv( 1 - alpha / 2, n - 1 ) / sqrt( n ) ); + PushDouble( sigma * GetTInv( alpha, n - 1 ) / sqrt( n ) ); } } |