mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-24 20:18:22 +00:00
a34695e0f9
* Additional unit tests and rationalisation for Financial Functions * Providing a series of sample files for Financial functions * Refactor the last of the existing Financial functions * Some more unit tests with default assignments from null arguments Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
49 lines
1.1 KiB
PHP
49 lines
1.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
99.98449887555694,
|
|
'15-Feb-2008', '13-Apr-2008', '11-Nov-2007', 0.061, 0.061, 0,
|
|
],
|
|
[
|
|
99.98449887555694,
|
|
'15-Feb-2008', '13-Apr-2008', '11-Nov-2007', 0.061, 0.061, null,
|
|
],
|
|
[
|
|
106.8486842105263,
|
|
'1-Apr-2017', '31-Mar-2021', '1-Jan-2017', 0.055, 0.035,
|
|
],
|
|
[
|
|
93.0909090909091,
|
|
'1-Jul-2017', '1-Jan-2027', '1-Jan-2017', 0.07, 0.08,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'Invalid Date', '1-Jan-2027', '1-Jan-2017', 0.07, 0.08,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'1-Jul-2017', 'Invalid Date', '1-Jan-2017', 0.07, 0.08,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'1-Jul-2017', '1-Jan-2027', 'Invalid Date', 0.07, 0.08,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'1-Jul-2017', '1-Jan-2027', '1-Jan-2017', 'NaN', 0.08,
|
|
],
|
|
[
|
|
'#NUM!',
|
|
'1-Jul-2017', '1-Jan-2027', '1-Jan-2017', -0.07, 0.08,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'1-Jul-2017', '1-Jan-2027', '1-Jan-2017', 0.07, 'NaN',
|
|
],
|
|
[
|
|
'#NUM!',
|
|
'1-Jul-2017', '1-Jan-2027', '1-Jan-2017', 0.07, -0.08,
|
|
],
|
|
];
|