Files
PhpSpreadsheet/tests/data/Calculation/Engineering/IMSUB.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

48 lines
803 B
PHP

<?php
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
return [
[
Functions::NAN(),
'12.34+5.67j',
'123.45+67.89i',
],
[
Functions::NAN(),
'12.34+5.67j',
'Invalid Complex Number',
],
[
'111.11+62.22j',
'123.45+67.89j',
'12.34+5.67j',
],
[
'-111.11-62.22j',
'12.34+5.67j',
'123.45+67.89j',
],
[
'-111.11-62.22i',
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89i',
],
[
'-135.79+62.22i',
'-12.34-5.67i',
'123.45-67.89i',
],
[
'135.79+62.22i',
'12.34-5.67i',
'-123.45-67.89i',
],
[
'111.11+62.22i',
'-12.34-5.67i',
'-123.45-67.89i',
],
];