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

52 lines
746 B
PHP

<?php
// settlement, maturity, price, redemption, basis, result
return [
[
0.052420213,
'2007-01-25',
'2007-06-15',
97.974999999999994,
100,
1,
],
[
0.01,
'2010-04-01',
'2015-03-31',
95,
100,
],
[
0.01,
'2010-04-01',
'2015-03-31',
95,
100,
null,
],
[
'#NUM!',
'2010-04-01',
'2015-03-31',
0,
100,
],
[
'#VALUE!',
'2010-04-01',
'2015-03-31',
'ABC',
100,
],
[
'#VALUE!',
'Invalid Date',
'2007-06-15',
97.974999999999994,
100,
1,
],
];