Files
PhpSpreadsheet/tests/data/Calculation/Financial/YIELDDISC.php
T
Mark Baker 5ad5f787ab Financial functions next stage of refactoring (#1943)
* First steps splitting out the Amortization and Deprecation Excel functions from Financials
* Verify which methods allow negative values for arguments
* Additional unit tests for SLN() and SYD()
* Additional unit tests for DDB()
* Additional unit tests for DB()
* Verify Amortization cases where salvage is greater than cost
* More unit tests for Amortization
* Resolve broken test in AMORLINC() and extract amortizationCoefficient calculation
* verify amortizationCoefficient calculation
* Extract YIELDDISC() and YIELDMAT() to Financial\Securities
* Additional validation for Securities Yield functions
2021-03-21 21:40:49 +01:00

37 lines
666 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,
],
[
'#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,
],
];