mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-29 11:40:04 +00:00
5ad5f787ab
* 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
37 lines
666 B
PHP
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,
|
|
],
|
|
];
|