Files
PhpSpreadsheet/tests/data/Calculation/Engineering/IMABS.php
T
Mark Baker 4e8a926cb4 Final part of breaking down the Engineering class for Excel Engineering functions into smaller individual/group classes (#1940)
* Final breaking down the Engineering class for Excel Engineering functions into smaller individual/group classes
* Additional unhappy path tests for Complex Number functions
* Fix return docblocks for floats to allow for error strings
2021-03-19 18:50:43 +01:00

119 lines
1.5 KiB
PHP

<?php
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
return [
[
13.58029822942,
'12.34+5.67j',
],
[
Functions::NAN(),
'Invalid Complex Number',
],
[
6780000000.0,
'1.234E-5+6.78E9i',
],
[
4.3011626335209998,
'3.5+2.5i',
],
[
3.6400549446400001,
'3.5+i',
],
[
3.5,
'3.5',
],
[
3.6400549446400001,
'3.5-i',
],
[
4.3011626335209998,
'3.5-2.5i',
],
[
2.6925824035670001,
'1+2.5i',
],
[
1.4142135623730001,
'1+i',
],
[
1,
'1',
],
[
1.4142135623730001,
'1-i',
],
[
2.6925824035670001,
'1-2.5i',
],
[
2.5,
'2.5i',
],
[
1,
'i',
],
[
0,
'0',
],
[
1,
'-i',
],
[
2.5,
'-2.5i',
],
[
2.6925824035670001,
'-1+2.5i',
],
[
1.4142135623730001,
'-1+i',
],
[
1,
'-1',
],
[
1.4142135623730001,
'-1-i',
],
[
2.6925824035670001,
'-1-2.5i',
],
[
4.3011626335209998,
'-3.5+2.5i',
],
[
3.6400549446400001,
'-3.5+i',
],
[
3.5,
'-3.5',
],
[
3.6400549446400001,
'-3.5-i',
],
[
4.3011626335209998,
'-3.5-2.5i',
],
];