PhpSpreadsheet/tests/data/Calculation/Financial/NPER.php

74 lines
980 B
PHP
Raw Normal View History

<?php
// rate, pmt, pv, fv, type, result
return [
[
0.01,
-100,
-1000,
10000,
1,
59.673865674295001,
],
[
0.01,
-100,
-1000,
10000,
60.082122853762002,
],
[
0.01,
-100,
-1000,
-9.5785940398132006,
],
[
0.0033333333329999999,
-1000,
50000,
54.787577259999999,
],
[
0.014999999999999999,
-1200,
9000,
5000,
1,
11.90373729,
],
[
0.014999999999999999,
-1200,
9000,
5000,
2,
'#NUM!',
],
[
0.014999999999999999,
0.0,
0.0,
5000,
1,
'#NUM!',
],
[
0.0,
0.0,
-500,
5000,
1,
'#NUM!',
],
[
0.0,
-50,
-250,
150,
1,
-2.0,
],
];