Files
PhpSpreadsheet/tests/data/Calculation/Financial/PRICEDISC.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

49 lines
953 B
PHP

<?php
return [
[
90.0,
['01-Apr-2017', '31-Mar-2021', 0.025, 100],
],
[
97.625,
['2008-02-15', '2008-11-30', 0.03, 100, null],
],
[
97.6311475409836,
['2008-02-15', '2008-11-30', 0.03, 100, 1],
],
[
'#VALUE!',
['Invalid Date', '2008-11-30', 0.03, 100, 1],
],
[
'#VALUE!',
['2008-02-15', 'Invalid Date', 0.03, 100, 1],
],
[
'#VALUE!',
['2008-02-15', '2008-11-30', 'NaN', 100, 1],
],
[
'#NUM!',
['2008-02-15', '2008-11-30', -0.03, 100, 1],
],
[
'#VALUE!',
['2008-02-15', '2008-11-30', 0.03, 'NaN', 1],
],
[
'#NUM!',
['2008-02-15', '2008-11-30', 0.03, -100, 1],
],
[
'#VALUE!',
['2008-02-15', '2008-11-30', 0.03, 100, 'NaN'],
],
[
'#NUM!',
['2008-02-15', '2008-11-30', 0.03, 100, -1],
],
];