Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The TINV formula result is different from MS Excel / LibreOffice when the degrees of freedom is 1 #4167

Open
2 of 11 tasks
fauzie811 opened this issue Sep 21, 2024 · 0 comments

Comments

@fauzie811
Copy link

fauzie811 commented Sep 21, 2024

This is:

What is the expected behavior?

It should returns: 12.7062047

What is the current behavior?

It returns: 1.8373862310371

What are the steps to reproduce?

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

require __DIR__ . '/vendor/autoload.php';

$calculation = \PhpOffice\PhpSpreadsheet\Calculation\Calculation::getInstance();

$formula = '=TINV(0.05, 1)';
$result = $calculation->_calculateFormulaValue($formula);

What features do you think are causing the issue

  • Reader
  • Writer
  • Styles
  • Data Validations
  • Formula Calculations
  • Charts
  • AutoFilter
  • Form Elements

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

Not sure.

Which versions of PhpSpreadsheet and PHP are affected?

2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant