repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/MONTH.php | tests/data/Calculation/DateTime/MONTH.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[1, 0],
[12, 22269.0],
[2, 30348.0],
[6, 30843.0],
[11, '11-Nov-1918'],
[2, '28-Feb-1904'],
[7, '01 Jul 2003'],
[4, '38094'],
[12, 'Dec 2003'],
[12, '1960-12-25'],
[11,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/EOMONTH.php | tests/data/Calculation/DateTime/EOMONTH.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[39507.0, '15-Jan-2008', 1],
[39447.0, '15-Jan-2008', -1],
[39538.0, '15-Jan-2008', 2],
[39202.0, '31-Mar-2007', 1],
[39141.0, '31-Mar-2007', -1],
[39507.0, '31-Mar-2008', -1],
[39416.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/HOUR.php | tests/data/Calculation/DateTime/HOUR.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[6, 0.25],
[18, 0.75],
[12, 0.5],
[14, 0.6],
[11, '11-Nov-1918 11:11'],
[23, '11:59 PM'],
[23, '23:59:59'],
[0, 3600],
[ExcelError::VALUE(), '31:62:93'],
[ExcelError::NAN()... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DATEVALUE.php | tests/data/Calculation/DateTime/DATEVALUE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
// Date String, Result
// Note that Excel fails ordinal number forms but PhpSpreadsheet parses them
return [
[ExcelError::VALUE(), '25-Dec-1899'],
[ExcelError::VALUE(), '31-Dec-1899'],
[1, '1-Jan-1900'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/WEEKNUM1904.php | tests/data/Calculation/DateTime/WEEKNUM1904.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[52, '21-Dec-2000', 1],
[1, '2000-01-01', 1],
[2, '2000-01-02', 1],
[1, '2000-01-01', 2],
[2, '2000-01-03', 2],
[1, '1995-01-01', 1],
[1, '1995-01-07', 1],
[2, '1995-01-08', 1],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DATE.php | tests/data/Calculation/DateTime/DATE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[6890.0, 18, 11, 11], // year less than 1900, adds 1900 (1918-11-11)
[44809.0, 122, 9, 5], // year less than 1900, adds 1900 (2022-09-05)
[693845.0, 1899, 9, 5], // year less than 1900, adds 1900 (379... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DAYS.php | tests/data/Calculation/DateTime/DAYS.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[ExcelError::VALUE(), '2007-1-10', 'ABC'],
[ExcelError::VALUE(), 'DEF', '2007-1-1'],
[9, '2007-1-10', '2007-1-1'],
[-9, '2007-1-1', '2007-1-10'],
[364, '2007-12-31', '2007-1-1'],
[547, '20... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/TIMEVALUE.php | tests/data/Calculation/DateTime/TIMEVALUE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[0, '12:00:00 am'],
[0.000717593, '12:01:02 am'],
[0.502083333, '12:03 pm'],
[0.504988426, '12:7:11 pm'],
[0.176145833, '4:13:39'],
[0.764085648, '6:20:17 pm'],
[0.773229167, '18:33:27... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DAYS360.php | tests/data/Calculation/DateTime/DAYS360.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[ExcelError::VALUE(), 'ABC', '2007-1-10', false],
[ExcelError::VALUE(), '2007-1-1', 'DEF', true],
[ExcelError::VALUE(), '2007-1-1', '2007-1-10', 'XYZ'],
[ExcelError::VALUE(), '2007-1-10', '2007-1-... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/EDATE.php | tests/data/Calculation/DateTime/EDATE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[39493.0, '15-Jan-2008', 1],
[39431.0, '15-Jan-2008', -1],
[39522.0, '15-Jan-2008', 2],
[39202.0, '31-Mar-2007', 1],
[39141.0, '31-Mar-2007', -1],
[39507.0, '31-Mar-2008', -1],
[39416.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DAY.php | tests/data/Calculation/DateTime/DAY.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
// Excel Result, Argument
return [
[19, 22269],
[1, 30348],
[10, 30843],
[11, '11-Nov-1918'],
[28, '28-Feb-1904'],
[25, '1960-12-25'],
[ExcelError::VALUE(), '30-Feb-1904'],
[ExcelError::VA... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/ISOWEEKNUM1904.php | tests/data/Calculation/DateTime/ISOWEEKNUM1904.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[51, '21-Dec-2000'],
[52, '2000-01-01'],
[1, '2000-01-03'],
[52, '1995-01-01'],
[1, '1995-01-07'],
[2, '1995-01-10'],
[1, '2018-01-01'],
[ExcelError::VALUE(), '1800-01-01'],
[5... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/MINUTE.php | tests/data/Calculation/DateTime/MINUTE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[48, 0.2],
[36, '0.4'],
[24, 0.6],
[12, 0.8],
[15, '11-Nov-1918 11:15'],
[59, '11:59 PM'],
[59, '23:59:59'],
[ExcelError::VALUE(), '31:62:93'],
[0, 3600],
[ExcelError::NAN(... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/NETWORKDAYS.php | tests/data/Calculation/DateTime/NETWORKDAYS.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[8, '1-Jan-2007', '10-Jan-2007'],
[3, '18-Jun-2008', '20-Jun-2008'],
[5, '16-Jun-2008', '20-Jun-2008'],
[5, '14-Jun-2008', '20-Jun-2008'],
[1, '20-Jun-2008', '20-Jun-2008'],
[0, '21-Jun-20... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/YEARFRAC.php | tests/data/Calculation/DateTime/YEARFRAC.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
0.025,
'2007-1-1',
'2007-1-10',
0,
],
[
0.025,
'2007-1-1',
'2007-1-10',
null,
],
[
0.025,
'2007-1-10',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/WORKDAY.php | tests/data/Calculation/DateTime/WORKDAY.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[ExcelError::VALUE(), '1-Jan-2007', 'ABC'],
[39094.0, '1-Jan-2007', 9],
[39619.0, '18-Jun-2008', 2],
[39619.0, '16-Jun-2008', 4],
[39622.0, '14-Jun-2008', 6],
[39629.0, '14-Jun-2008', 11],... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/WEEKDAY.php | tests/data/Calculation/DateTime/WEEKDAY.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[5, '24-Oct-1968'],
[5, '24-Oct-1968', 1],
[4, '24-Oct-1968', 2],
[3, '24-Oct-1968', 3],
[ExcelError::NAN(), '24-Oct-1968', 4],
[ExcelError::NAN(), '24-Oct-1968', 0],
[ExcelError::NAN(... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/ISOWEEKNUM.php | tests/data/Calculation/DateTime/ISOWEEKNUM.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[51, '21-Dec-2000'],
[52, '2000-01-01'],
[1, '2000-01-03'],
[52, '1995-01-01'],
[1, '1995-01-07'],
[2, '1995-01-10'],
[1, '2018-01-01'],
[ExcelError::VALUE(), '1800-01-01'],
[5... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/YEAR.php | tests/data/Calculation/DateTime/YEAR.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[1900, 0],
[1900, 1],
[1991, 33333.33],
[1960, '22269.0'],
[1983, 30348.0],
[1984, 30843.0],
[2525, '01 Jan 2525'],
[1918, '11-Nov-1918'],
[1904, '28-Feb-1904'],
[ExcelErro... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/WEEKNUM.php | tests/data/Calculation/DateTime/WEEKNUM.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[52, '21-Dec-2000', 1],
[1, '2000-01-01', 1],
[2, '2000-01-02', 1],
[1, '2000-01-01', 2],
[2, '2000-01-03', 2],
[1, '1995-01-01', 1],
[1, '1995-01-07', 1],
[2, '1995-01-08', 1],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COMBIN.php | tests/data/Calculation/MathTrig/COMBIN.php | <?php
declare(strict_types=1);
// NumObjs, NumInSet, Result
return [
[
35,
7,
3,
],
[
28,
8,
2,
],
[
56,
8,
3,
],
[
70,
8,
4,
],
[
161700,
100,
3,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMWITHINDEXMATCH.php | tests/data/Calculation/MathTrig/SUMWITHINDEXMATCH.php | <?php
declare(strict_types=1);
return [
[
64, '=SUM(4 * INDEX(Lookup!B2, MATCH(A2, Lookup!A2, 0)))',
],
[
64, '=SUM(INDEX(Lookup!B2, MATCH(A2, Lookup!A2, 0)) * 4)',
],
[
20, '=SUM(4 + INDEX(Lookup!B2, MATCH(A2, Lookup!A2, 0)))',
],
[
20, '=SUM(INDEX(Lookup!B... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MDETERM.php | tests/data/Calculation/MathTrig/MDETERM.php | <?php
declare(strict_types=1);
return [
[
0,
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
],
],
[
0,
[
[1.1, 2.2, 3.3],
[4.4, 5.5, 6.6],
[7.7, 8.8, 9.9],
],
],
[
0,
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/TAN.php | tests/data/Calculation/MathTrig/TAN.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[1.557407725, '1'],
[-2.185039863, '"2"'],
[1, 'PI() / 4'],
['#DIV/0!', 'PI() / 2'],
['#DIV/0!', '-PI() / 2'],
['#DIV/0!', '3 * PI() / 2'],
[0, 'Q15'],
[0, 'false'],
[1.557407725,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/BASE.php | tests/data/Calculation/MathTrig/BASE.php | <?php
declare(strict_types=1);
return [
[
'111',
7,
2,
],
[
'64',
100,
16,
],
[
'CA',
202,
16,
],
[
'0000001111',
15,
2,
10,
],
[
'0000001111',
15.3,
2.6,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/RANDBETWEEN.php | tests/data/Calculation/MathTrig/RANDBETWEEN.php | <?php
declare(strict_types=1);
return [
['#VALUE!', 'y', 3],
['#VALUE!', 3, 'y'],
['#NUM!', 3, -3],
['#NUM!', 30, 10],
[0, '20', 30],
[0, 20, '30'],
[0, 20, 30],
[0, null, 30],
[0, false, 30],
[0, true, 30],
[0, -30, true],
[0, -30, false],
[0, -30, null],
['exc... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COS.php | tests/data/Calculation/MathTrig/COS.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[1, '0'],
[0, 'PI() / 2'],
[0.540302306, '1.0'],
[0.540302306, '-1.0'],
[-0.416146837, '2.0'],
[-0.416146837, '-2.0'],
[1, 'Q15'],
[1, 'false'],
[0.540302306, 'true'],
[-0.416146837, 'A2'],... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MULTINOMIAL.php | tests/data/Calculation/MathTrig/MULTINOMIAL.php | <?php
declare(strict_types=1);
return [
[
1260,
2,
3,
4,
],
[
27720,
3,
1,
2,
5,
],
[1, 0],
['#NUM!', 3, -1],
['#VALUE!', 3, 'X'],
['#VALUE!', 3, null],
['#VALUE!', 3, true],
['exception'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMX2PY2.php | tests/data/Calculation/MathTrig/SUMX2PY2.php | <?php
declare(strict_types=1);
return [
[
64,
[5, 2, 3],
[3, -1, 4],
],
[
521,
[2, 3, 9, 1, 8, 7, 5],
[6, 5, 11, 7, 5, 4, 4],
],
[
204,
[[1, 2], [3, 4]],
[[5, 6], [7, 8]],
],
[30, [1, 2], [3, 4]],
[30, [1, '=2'], [... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/CEILINGPRECISE.php | tests/data/Calculation/MathTrig/CEILINGPRECISE.php | <?php
declare(strict_types=1);
return [
[3, '2.5, 1'],
[-2, '-2.5, -2'],
[-2, '-2.5, 2'],
[4, '2.5, -2'],
[0.0, '0.0, 1'],
[0.0, '123.456, 0'],
[1.5, '1.5, 0.1'],
[0.24, '0.234, 0.01'],
[124, '123.456, 1'],
['#VALUE!', '"ABC"'],
[18, '17, 3'],
[20, '19, 4'],
['excep... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/LOG.php | tests/data/Calculation/MathTrig/LOG.php | <?php
declare(strict_types=1);
// number, base, result
return [
[
'#VALUE!',
'ABC',
],
[
'#VALUE!',
'123ABC',
],
[
0.091491094267951101,
1.2344999999999999,
],
[
'#NUM!',
-1.5,
-0.75,
],
[
'#NUM!',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ABS.php | tests/data/Calculation/MathTrig/ABS.php | <?php
declare(strict_types=1);
return [
['exception'], // exception - not enough args
['#VALUE!', 'ABC'],
[35.51, '35.51'],
[35.51, '=35.51'],
[35.51, '="35.51"'],
[35.51, 35.51],
[35.51, -35.51],
[6, '6'],
[7, '-7'],
[0, 0],
[0, null],
[0, false],
[1, true],
['... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ATAN.php | tests/data/Calculation/MathTrig/ATAN.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[M_PI / 4, '"1"'],
[1.107149, '2'],
[-M_PI / 4, '-1'],
[M_PI / 2, '10000000'],
// ['#NUM!', 2], Believe NAN is not possible
[0, 'Q15'],
[0, 'false'],
[M_PI / 4, 'true'],
[1.373400... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/CEILING.php | tests/data/Calculation/MathTrig/CEILING.php | <?php
declare(strict_types=1);
return [
[3.0, '2.5, 1'],
[-4.0, '-2.5, -2'],
[1.5, '1.5, 0.1'],
[0.24, '0.234, 0.01'],
[-2.4, '-2.341, -0.1'],
[0.0, '8, 0'],
[9.0, '8, 1.5'],
['#NUM!', '8, -1.5'],
'changed with pr 4466 #1' => [-7.5, '-8, 1.5'],
[-9.0, '-8, -1.5'],
[8.3, '8.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/CSCH.php | tests/data/Calculation/MathTrig/CSCH.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[-0.00009079985971, -10],
[-0.00373489848829, '-PI() * 2'],
[-0.01347650583059, '"-5"'],
[-0.08658953753005, '-PI()'],
[-0.43453720809470, '-PI() / 2'],
[-9.98335275729611, -0.1],
['#DIV/0!', 0.0],
[9.98335275729611, 0.1... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ATAN2.php | tests/data/Calculation/MathTrig/ATAN2.php | <?php
declare(strict_types=1);
// x_num, y_num, Result
return [
['#DIV/0!', '0, 0'],
[M_PI_4, '1, 1'],
[-3 * M_PI_4, '-1, -1'],
[3 * M_PI_4, '-1, 1'],
[-M_PI_4, '1, -1'],
[1.107148717, '0.5, 1'],
[1.815774989, '-0.5, 2'],
[0.674740942, '1, 0.8'],
[-0.643501109, '0.8, -0.6'],
[... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/PI.php | tests/data/Calculation/MathTrig/PI.php | <?php
declare(strict_types=1);
return [
[3.141592653589793],
'should not supply any arguments' => ['exception', 1],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/CSC.php | tests/data/Calculation/MathTrig/CSC.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[1.83816396088967, -10],
[1.04283521277141, '"-5"'],
[-1.0, '-PI() / 2'],
[-10.01668613163480, -0.1],
['#DIV/0!', 0.0],
['#DIV/0!', 'PI()'],
['#DIV/0!', '-PI()'],
[10.01668613163480, 0.1],
[1.0, 'PI() / 2'],
[-1.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ACOS.php | tests/data/Calculation/MathTrig/ACOS.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[M_PI_2, '0'],
[M_PI, '"-1"'],
[0, '1'],
['#NUM!', '2'],
[M_PI_2, 'Q15'],
[M_PI_2, 'false'],
[0, 'true'],
[1.047197551, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ACOT.php | tests/data/Calculation/MathTrig/ACOT.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[3.04192400109863, -10],
[2.98376146330163, '-PI() * 2'],
[2.94419709373991, '"-5"'],
[2.83342358247381, '-PI()'],
[2.57468114864878, '-PI() / 2'],
[1.67046497928606, -0.1],
[1.57079632679490, 0.0],
[1.47112767430373, 0.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMSQ.php | tests/data/Calculation/MathTrig/SUMSQ.php | <?php
declare(strict_types=1);
return [
[
25,
3,
4,
],
[
39,
5,
2,
1,
3,
],
[
66,
5,
2,
1,
6,
],
[
10,
1,
3,
],
[
30,
1,
3,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/EVEN.php | tests/data/Calculation/MathTrig/EVEN.php | <?php
declare(strict_types=1);
return [
[0, 'null'],
[6, 5.4],
[-6, -5.4],
[2, 1.5],
[2, 0.1],
[4, '"3"'],
[2, 2],
[-2, -2],
[-2, -1],
['#VALUE!', '"ABC"'],
[2, 'true'],
[0, 'false'],
[0, 0],
[212, 210.6],
[4, 2.98],
[-4, -2.98],
[6, 6],
['except... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MMULT.php | tests/data/Calculation/MathTrig/MMULT.php | <?php
declare(strict_types=1);
return [
[
[
[7, 10],
[15, 22],
],
[
[1, 2],
[3, 4],
],
[
[1, 2],
[3, 4],
],
],
[
[
[30, 36, 42],
[66, 81, 96],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ACOSH.php | tests/data/Calculation/MathTrig/ACOSH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[1.316958, '2'],
[0, '1'],
['#NUM!', '0'],
['#NUM!', '-1'],
['#NUM!', 'Q15'],
['#NUM!', 'false'],
[0, 'true'],
[0.96242365, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COTH.php | tests/data/Calculation/MathTrig/COTH.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[-1.00000000412231, -10],
[-1.00000697470904, '-PI() * 2'],
[-1.00009080398202, '"-5"'],
[-1.00374187319732, '-PI()'],
[-1.09033141072737, '-PI() / 2'],
[-10.03331113225400, -0.1],
['#DIV/0!', 0.0],
[10.03331113225400, 0... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ASIN.php | tests/data/Calculation/MathTrig/ASIN.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[M_PI_2, '1'],
[-M_PI_2, '"-1"'],
[0, '0'],
['#NUM!', '2'],
[0, 'Q15'],
[0, 'false'],
[M_PI_2, 'true'],
[0.523598776, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SIN.php | tests/data/Calculation/MathTrig/SIN.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[1, 'PI() / 2'],
[0.89120736, '"1.1"'],
[-0.89120736, '-1.1'],
[0.909297427, '2.0'],
[0, 'Q15'],
[0, 'false'],
[0.841470985, 'true'],
[0.909297427, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/POWER.php | tests/data/Calculation/MathTrig/POWER.php | <?php
declare(strict_types=1);
return [
[
'#NUM!',
-1.5,
-1.5,
],
[
'#NUM!',
-0.75,
-1.5,
],
[
'#DIV/0!',
0,
-1.5,
],
[
1.5396007178390001,
0.75,
-1.5,
],
[
0.54433105395182002,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/DEGREES.php | tests/data/Calculation/MathTrig/DEGREES.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
[45, M_PI / 4],
[0, 0],
[0, null],
[0, false],
['#VALUE!', ''],
[57.29577951, true],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUBTOTALHIDDEN.php | tests/data/Calculation/MathTrig/SUBTOTALHIDDEN.php | <?php
declare(strict_types=1);
return [
[21, 101],
[5, 102],
[5, 103],
[55, 104],
[1, 105],
[48620, 106],
[23.1840462387393, 107],
[20.7364413533277, 108],
[105, 109],
[537.5, 110],
[430, 111],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/CEILINGMATH.php | tests/data/Calculation/MathTrig/CEILINGMATH.php | <?php
declare(strict_types=1);
return [
[3, '2.5, 1'],
[-2, '"-2.5", "-2"'],
[-2, '-2.5, 2'],
[4, '2.5, -2'],
[0.0, '0.0, 1'],
['0', '123.456, 0'],
[1.5, '1.5, 0.1'],
[0.24, '0.234, 0.01'],
[124, '123.456'],
['#VALUE!', '"ABC"'],
[18, '17, 3'],
[20, '19, 4'],
[25, '... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/QUOTIENT.php | tests/data/Calculation/MathTrig/QUOTIENT.php | <?php
declare(strict_types=1);
return [
[
2,
5,
2,
],
[
1,
4.5,
3.1000000000000001,
],
[
-3,
-10,
3,
],
[
4,
10,
2.2000000000000002,
],
[
2,
5.5,
2.66699999999999... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MINVERSE.php | tests/data/Calculation/MathTrig/MINVERSE.php | <?php
declare(strict_types=1);
return [
[
[
[0.147222222222222, -0.14444444444444399, 0.063888888888888898],
[-0.061111111111111102, 0.022222222222222199, 0.105555555555556],
[-0.0194444444444444, 0.18888888888888899, -0.102777777777778],
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/LCM.php | tests/data/Calculation/MathTrig/LCM.php | <?php
declare(strict_types=1);
return [
[
10,
5,
2,
],
[
72,
24,
36,
],
[
84,
3,
7,
12,
],
[
72,
24.899999999999999,
36.899999999999999,
],
[
726,
6,
22,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMX2MY2.php | tests/data/Calculation/MathTrig/SUMX2MY2.php | <?php
declare(strict_types=1);
return [
[
12,
[5, 2, 3],
[3, -1, 4],
],
[
-55,
[2, 3, 9, 1, 8, 7, 5],
[6, 5, 11, 7, 5, 4, 4],
],
[
-144,
[[1, 2], [3, 4]],
[[5, 6], [7, 8]],
],
[-20, [1, 2], [3, 4]],
[-20, [1, '=2']... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUM.php | tests/data/Calculation/MathTrig/SUM.php | <?php
declare(strict_types=1);
return [
[50, 5, 15, 30],
[52, 5, 15, 30, 2],
[53.1, 5.7, 15, 30, 2.4],
[52.1, 5.7, '14', 30, 2.4],
[52.2, 5.7, '14.1', 30, 2.4],
[38.1, 5.7, 'X', 30, 2.4], // error if entered in formula, but not in cell
[38.1, 5.7, '', 30, 2.4], // error if entered in formu... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/TANH.php | tests/data/Calculation/MathTrig/TANH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[0.761594156, '1'],
[-0.761594, '-1'],
[0.970452, '2.1'],
[0, 'Q15'],
[0, 'false'],
[0.761594156, 'true'],
[0.761594156, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/LN.php | tests/data/Calculation/MathTrig/LN.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
['#NUM!', 0],
['#NUM!', -1],
[-2.302585, 0.1],
[0, 1],
[2.302585, 10],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SEQUENCE.php | tests/data/Calculation/MathTrig/SEQUENCE.php | <?php
declare(strict_types=1);
return [
[
[2, 2],
[
[1, 2],
[3, 4],
],
],
[
[2, 3],
[
[1, 2, 3],
[4, 5, 6],
],
],
[
[3, 2],
[
[1, 2],
[3, 4],
[5, 6],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/LOG10.php | tests/data/Calculation/MathTrig/LOG10.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
['#NUM!', 0],
['#NUM!', -1],
[-1, 0.1],
[0, 1],
[0.301030, 2],
[1, 10],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/EXP.php | tests/data/Calculation/MathTrig/EXP.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
[2.7182818284590, 1],
[2.7182818284590, true],
[1, false],
[1, null],
['#VALUE!', ''],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SERIESSUM.php | tests/data/Calculation/MathTrig/SERIESSUM.php | <?php
declare(strict_types=1);
return [
[
3905,
5,
1,
1,
[
[
1,
1,
1,
1,
1,
],
],
],
[
3186,
2,
1,
2,
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ROUND.php | tests/data/Calculation/MathTrig/ROUND.php | <?php
declare(strict_types=1);
return [
[0, '0,2'],
[663, '662.79, 0'],
[662.8, '662.79, 1'],
[50, '54.1, -1'],
[60, '55.1, -1'],
[-23.7, '-23.67 ,1'],
[3, '3.2, 0'],
[3, '3.2, 0.01'],
[77, '76.9, 0'],
[3.142, '3.14159, 3'],
[-3.1, '-3.14159, 1'],
[31400, '31415.92654, ... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ASINH.php | tests/data/Calculation/MathTrig/ASINH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[0.881374, '1'],
[1.443635, '"2"'],
[-0.881374, '-1'],
[14.508658, '1000000'],
// ['#NUM!', 2], Don't know if NAN is possible
[0, 'Q15'],
[0, 'false'],
[0.881373587, 'true'],
[0.4... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ARABIC.php | tests/data/Calculation/MathTrig/ARABIC.php | <?php
declare(strict_types=1);
return [
[
0,
' ',
],
[
49,
'XLIX',
],
[
50,
'L',
],
[
2012,
'MMXII',
],
[
999,
'CMXCIX',
],
[
499,
'CDXCIX',
],
[
2018,
'M... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COMBINA.php | tests/data/Calculation/MathTrig/COMBINA.php | <?php
declare(strict_types=1);
// NumObjs, NumInSet, Result
return [
[
84,
7,
3,
],
[
36,
8,
2,
],
[
120,
8,
3,
],
[
330,
8,
4,
],
[
171700,
100,
3,
],
[... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMXMY2.php | tests/data/Calculation/MathTrig/SUMXMY2.php | <?php
declare(strict_types=1);
return [
[
6,
[5, 2, 3],
[3, 1, 2],
],
[
79,
[2, 3, 9, 1, 8, 7, 5],
[6, 5, 11, 7, 5, 4, 4],
],
[
64,
[[1, 2], [3, 4]],
[[5, 6], [7, 8]],
],
[8, [1, 2], [3, 4]],
[8, [1, '=2'], [3, 4]]... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COT.php | tests/data/Calculation/MathTrig/COT.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[-1.54235104535692, -10],
[0.29581291553275, '"-5"'],
[0.0, '-PI() / 2'],
[-9.96664442325924, -0.1],
['#DIV/0!', 0.0],
['#DIV/0!', 'PI()'],
['#DIV/0!', '-PI()'],
[9.96664442325924, 0.1],
[0.0, 'PI() / 2'],
[-0.29... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SEC.php | tests/data/Calculation/MathTrig/SEC.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[-1.1917935066879, -10],
[1.0, '-PI() * 2'],
[3.52532008581609, '"-5"'],
[-1.0, '-PI()'],
['#DIV/0!', 'PI() / 2'],
['#DIV/0!', '-PI() / 2'],
[14.13683290296990, -1.5],
[1.00502091840046, -0.1],
[1.0, 0.0],
[1.005... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMLITERALS.php | tests/data/Calculation/MathTrig/SUMLITERALS.php | <?php
declare(strict_types=1);
return [
[50, '5, 15, 30'],
[52, '5, 15, 30, 2'],
[53.1, '5.7, 15, 30, 2.4'],
[52.1, '5.7, "14", 30, 2.4'],
[52.2, '5.7, "14.1", 30, 2.4'],
['#VALUE!', '5.7, "X", 30, 2.4'], // error if entered in formula, but not in cell
['#VALUE!', '5.7, "", 30, 2.4'], // e... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SQRTPI.php | tests/data/Calculation/MathTrig/SQRTPI.php | <?php
declare(strict_types=1);
return [
[
'#VALUE!',
'ABC',
],
[
'#NUM!',
-1.5,
],
[
'#NUM!',
-1,
],
[
'#NUM!',
-0.5,
],
[
0.0,
0,
],
[
1.2533141373154999,
0.5,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FACTDOUBLE.php | tests/data/Calculation/MathTrig/FACTDOUBLE.php | <?php
declare(strict_types=1);
return [
[
1,
0,
],
[
48,
6,
],
[
105,
7,
],
[
15,
5,
],
[
384,
8,
],
[
135135,
13,
],
[
'#NUM!',
-1,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUBTOTAL.php | tests/data/Calculation/MathTrig/SUBTOTAL.php | <?php
declare(strict_types=1);
return [
[19.3333333333333, 1],
[12, 2],
[12, 3],
[89, 4],
[0, 5],
[0, 6],
[27.5196899207337, 7],
[26.3480971271593, 8],
[232, 9],
[757.3333333333330, '10'],
[694.2222222222220, 11.1],
['#VALUE!', 0],
['#VALUE!', -1],
['#VALUE!', 1... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/TRUNC.php | tests/data/Calculation/MathTrig/TRUNC.php | <?php
declare(strict_types=1);
return [
[3.14, '3.14159, 2'],
[3.141, '3.14159, 3'],
[-3.14, '-3.14159, 2'],
[-3.141, '-3.14159, 3'],
[31415.92654, '31415.92654, 10'],
[-31415.92654, '-31415.92654, 10'],
[31415.92, '31415.92654, 2'],
[31400, '31415.92654, -2'],
'negative number an... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/COSH.php | tests/data/Calculation/MathTrig/COSH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[1, '0'],
[1.543081, '"1"'],
[1.543081, '-1.0'],
[3.762196, '2.0'],
[11013.23292, '10'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/GCD.php | tests/data/Calculation/MathTrig/GCD.php | <?php
declare(strict_types=1);
return [
[
1,
5,
2,
],
[
12,
24,
36,
],
[
1,
7,
1,
],
[
5,
5,
0,
],
[
5,
30,
15,
10,
],
[
14,
42,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/RADIANS.php | tests/data/Calculation/MathTrig/RADIANS.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
[M_PI / 4, 45],
[0, 0],
[0, null],
[0, false],
['#VALUE!', ''],
['#VALUE!', '=15+""'],
[0, '=15+"-15"'],
[0.017453293, true],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ROUNDDOWN.php | tests/data/Calculation/MathTrig/ROUNDDOWN.php | <?php
declare(strict_types=1);
return [
[0, '0,2'],
[662, '662.79,0'],
[662.7, '662.79, 1'],
[50, '54.1, -1'],
[50, '55.1, -1'],
[-23.6, '-23.67, 1'],
[3, '3.2, 0'],
[3, '3.2, 0.01'],
[76, '76.9, 0'],
[3.141, '3.14159, 3'],
[-3.1, '-3.14159,1'],
[31400, '31415.92654,"-2... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/PRODUCT.php | tests/data/Calculation/MathTrig/PRODUCT.php | <?php
declare(strict_types=1);
return [
[
2250,
5,
15,
30,
],
[
4500,
5,
15,
30,
2,
],
[
1440,
3,
6,
2,
8,
5,
],
[
12,
3,
4,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MROUND.php | tests/data/Calculation/MathTrig/MROUND.php | <?php
declare(strict_types=1);
return [
[9, '10,3'],
[-9, '-10,-3'],
[1.4, '1.3,0.2'],
[0, '5,0'],
[3.142, '3.14159, 0.002'],
[-3.140, '-3.14159,-0.02'],
[31420, '"31415.92654", 10'],
[31416, '31415.92654,"1"'],
[0, '0,5'],
['#NUM!', '5,-2'],
['#VALUE!', '"ABC",1'],
['#... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FACTGNUMERIC.php | tests/data/Calculation/MathTrig/FACTGNUMERIC.php | <?php
declare(strict_types=1);
return [
[
120,
5,
],
[
1.82735508062404,
1.9,
],
[
1,
0,
],
[
'#NUM!',
-4,
],
[
1,
1,
],
[
6,
3,
],
[
720,
6,
],
[... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FLOOR.php | tests/data/Calculation/MathTrig/FLOOR.php | <?php
declare(strict_types=1);
return [
[2, '2.5, 1'],
[-2, '-2.5, -2'],
[-4, '-2.5, 2'],
[0.0, '0.0, 1'],
['#NUM!', '2.5, -2'],
[-4, '-2.5, 2'],
['#DIV/0!', '123.456, 0'],
[1.5, '1.5, 0.1'],
[0.23, '0.234, 0.01'],
['exception', '123.456'],
['#VALUE!', '"ABC", 1'],
[15,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMIF.php | tests/data/Calculation/MathTrig/SUMIF.php | <?php
declare(strict_types=1);
return [
[
15,
[
[1],
[5],
[10],
],
'>=5',
],
[
10,
[
['text'],
[2],
],
'text',
[
[10],
[100],
],
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FLOORPRECISE.php | tests/data/Calculation/MathTrig/FLOORPRECISE.php | <?php
declare(strict_types=1);
return [
[2, '2.5, 1'],
[-4, '-2.5, -2'],
[-4, '-2.5, 2'],
[2, '2.5, -2'],
[0.0, '0.0, 1'],
'corrected with PR 4446' => [0.0, '123.456, 0'],
[1.5, '1.5, 0.1'],
[0.23, '0.234, 0.01'],
[123, '123.456'],
['#VALUE!', '"ABC"'],
[15, '17, 3'],
[... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/INT.php | tests/data/Calculation/MathTrig/INT.php | <?php
declare(strict_types=1);
return [
['exception', ''],
[5, '5.4'],
[-6, '-5.4'],
[-4, '-3.2'],
[1, '"1.5"'],
[0, '0.1'],
[-1, '-0.1'],
[3, '3'],
[2, '2'],
[-3, '-2.01'],
[-2, '-2'],
[-1, '-1'],
['#VALUE!', '"ABC"'],
['#VALUE!', '""'],
[1, 'true'],
[0... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SIGN.php | tests/data/Calculation/MathTrig/SIGN.php | <?php
declare(strict_types=1);
return [
[-1, -1.5],
[-1, -1],
[-1, '"-0.5"'],
[0, 0],
[1, 0.5],
[1, 1],
[1, 1.5],
[1, 2],
[1, 2.5],
['#VALUE!', '"ABC"'],
[1, 'true'],
[0, 'false'],
[0, 'null'],
[-1, '-3.5'],
[0, 'Q15'],
[1, 'A2'],
[0, 'A3'],
[-1,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ROMAN.php | tests/data/Calculation/MathTrig/ROMAN.php | <?php
declare(strict_types=1);
return [
['XLIX', '49'],
['L', '50'],
['MMXII', '2012'],
['CMXCIX', '999'],
['CDXCIX', '499'],
['MMXVIII', '2018'],
['#VALUE!', '4000'],
['#VALUE!', '-1'],
['#VALUE!', '0, 5'],
['#VALUE!', '0, -1'],
['exception', ''],
['', '0'],
['', '... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ROUNDUP.php | tests/data/Calculation/MathTrig/ROUNDUP.php | <?php
declare(strict_types=1);
return [
[0, '0,2'],
[663, '662.79, 0'],
[662.8, '662.79,1'],
[60, '54.1,-1'],
[60, '55.1,-1'],
[-23.7, '-23.67,1'],
[4, '3.2,0'],
[4, '3.2,0.01'],
[77, '76.9,0'],
[3.142, '3.14159,3'],
[-3.2, '-3.14159,1'],
[31500, '31415.92654,"-2"'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/MOD.php | tests/data/Calculation/MathTrig/MOD.php | <?php
declare(strict_types=1);
return [
[
2,
19,
17,
],
[
-7,
19,
-13,
],
[
0,
34,
17,
],
[
'#DIV/0!',
34,
0,
],
[
1,
3,
2,
],
[
1,
-3,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ODD.php | tests/data/Calculation/MathTrig/ODD.php | <?php
declare(strict_types=1);
return [
[1, 'null'],
[7, 5.4],
[-7, -5.4],
[3, 1.5],
[1, 0.1],
[3, 3],
[3, 2],
[-3, -2],
[-1, -1],
['#VALUE!', '"ABC"'],
[1, 'true'],
[1, 'false'],
[1, 0],
['exception', ''],
['5', 'A2'],
['1', 'Q15'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SINH.php | tests/data/Calculation/MathTrig/SINH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[1.175201194, '1'],
[-1.175201194, '-1.0'],
[3.626860, '"2.0"'],
[0, 'Q15'],
[0, 'false'],
[1.175201194, 'true'],
[3.626860408, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ATANH.php | tests/data/Calculation/MathTrig/ATANH.php | <?php
declare(strict_types=1);
return [
['exception', ''],
['#VALUE!', '"ABC"'],
[0, '0'],
[1.472219, '"0.9"'],
[-1.472219, '-0.9'],
['#NUM!', '1'],
['#NUM!', '-1'],
[0, 'Q15'],
[0, 'false'],
['#NUM!', 'true'],
[1.098612289, 'A2'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FACT.php | tests/data/Calculation/MathTrig/FACT.php | <?php
declare(strict_types=1);
return [
[
120,
5,
],
[
1,
1.9,
],
[
1,
0,
],
[
'#NUM!',
-4,
],
[
1,
1,
],
[
6,
3,
],
[
720,
6,
],
[
362880... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/FLOORMATH.php | tests/data/Calculation/MathTrig/FLOORMATH.php | <?php
declare(strict_types=1);
return [
[2, '2.5, 1'],
[-4, '"-2.5", "-2"'],
[-4, '-2.5, 2'],
[2, '2.5, -2'],
[0.0, '0.0, 1'],
'corrected with PR 4466' => [0.0, '123.456, 0'],
[1.5, '1.5, 0.1'],
[0.23, '0.234, 0.01'],
[123, '123.456'],
['#VALUE!', '"ABC"'],
[15, '17, 3'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SQRT.php | tests/data/Calculation/MathTrig/SQRT.php | <?php
declare(strict_types=1);
return [
['exception'], // exception not enough args
['#VALUE!', 'ABC'],
[0, 0],
[0, null],
[0, false],
['#VALUE!', ''],
[1, true],
[1.5, 2.25],
[1.5, '2.25'],
[1.5, '="2.25"'],
[1.772454, M_PI],
['#NUM!', -2.1],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMPRODUCT.php | tests/data/Calculation/MathTrig/SUMPRODUCT.php | <?php
declare(strict_types=1);
return [
[
29,
[1, 2, 3],
[5, 6, 4],
],
[
156,
[[3, 4], [8, 6], [1, 9]],
[[2, 7], [6, 7], [5, 3]],
],
[
70,
[[1, 2], [3, 4]],
[[5, 6], [7, 8]],
],
['#VALUE!', [1, 2], [5, 6, 4]], // misma... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/ACOTH.php | tests/data/Calculation/MathTrig/ACOTH.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[-0.10033534773108, -10],
[-0.16051955750789, '-PI() * 2'],
[-0.20273255405408, '"-5"'],
[-0.32976531495670, '-PI()'],
[-0.75246926714193, '-PI() / 2'],
['#NUM!', -0.1],
['#NUM!', 0.0],
['#NUM!', 0.1],
[0.75246926714... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SUMIFS.php | tests/data/Calculation/MathTrig/SUMIFS.php | <?php
declare(strict_types=1);
return [
[
0,
],
[
2,
[
[1],
[1],
[1],
],
[
['Y'],
['Y'],
['N'],
],
'=Y',
[
['H'],
['H'],
['H'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/MathTrig/SECH.php | tests/data/Calculation/MathTrig/SECH.php | <?php
declare(strict_types=1);
return [
['#VALUE!', '"ABC"'],
[0.00009079985934, -10],
[0.00373487243864, '-PI() * 2'],
[0.01347528222130, '"-5"'],
[0.08626673833405, '-PI()'],
[0.39853681533839, '-PI() / 2'],
[0.99502074895323, -0.1],
[1.0, 0.0],
[0.99502074895323, 0.1],
[0.39... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Web/URLENCODE.php | tests/data/Calculation/Web/URLENCODE.php | <?php
declare(strict_types=1);
return [
[
'http%3A%2F%2Fcontoso.sharepoint.com%2Fteams%2FFinance%2FDocuments%2FApril%20Reports%2FProfit%20and%20Loss%20Statement.xlsx',
'http://contoso.sharepoint.com/teams/Finance/Documents/April Reports/Profit and Loss Statement.xlsx',
],
[
'#VALUE... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.