Files
PhpSpreadsheet/tests/data/Calculation/Financial/YIELDDISC.php
Mark Baker a34695e0f9 Financial functions more rationalization (#1990)
* 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>
2021-04-12 22:08:58 +02:00

45 lines
851 B
PHP

<?php
return [
[
0.05282257198685834,
'16-Feb-2008', '1-Mar-2008', 99.795, 100, 2,
],
[
0.06220123250590336,
'1-Jan-2017', '30-Jun-2017', 97, 100,
],
[
0.06220123250590336,
'1-Jan-2017', '30-Jun-2017', 97, 100, 0,
],
[
0.06220123250590336,
'1-Jan-2017', '30-Jun-2017', 97, 100, null,
],
[
'#VALUE!',
'Invalid', '30-Jun-2017', 97, 100,
],
[
'#VALUE!',
'1-Jan-2017', 'Invalid', 97, 100,
],
[
'#VALUE!',
'1-Jan-2017', '30-Jun-2017', 'NaN', 100,
],
[
'#VALUE!',
'1-Jan-2017', '30-Jun-2017', 97, 'NaN',
],
[
'#NUM!',
'1-Jan-2017', '30-Jun-2017', -97, 100,
],
[
'#NUM!',
'1-Jan-2017', '30-Jun-2017', 97, -100,
],
];