mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-26 15:48:36 +00:00
b87d78b206
* Extracting Financial Price functions for Securities - PRICE(), PRICEMAT(), PRICEDISC() * Additional unit tests for PRICEDISC() invalid arguments * Additional unit tests for PRICEMAT() invalid arguments * Add docblock for PRICE() * Clarification on validation checks for <= 0 and < 0
45 lines
869 B
PHP
45 lines
869 B
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
90.0,
|
|
['01-Apr-2017', '31-Mar-2021', 0.025, 100],
|
|
],
|
|
[
|
|
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],
|
|
],
|
|
];
|