PhpSpreadsheet/tests/data/Calculation/MathTrig/MOD.php
Matthias Van Woensel 39b8dbd0a1
Adding float cast to MOD function
If $a or $b are not strings, you can get an error that fmod needs param 1 ($a) to be of type double.
MS Excel does not fall over when you insert an empty string in MOD, so I'm guessing PHPExcel should do the same?
2016-12-04 16:12:51 +09:00

55 lines
509 B
PHP

<?php
return [
[
19,
17,
2,
],
[
19,
-13,
-7,
],
[
34,
17,
0,
],
[
34,
0,
'#DIV/0!',
],
[
3,
2,
1,
],
[
-3,
2,
1,
],
[
3,
-2,
-1,
],
[
-3,
-2,
-1,
],
[
2.5,
1.3,
1.2,
],
[
'',
1,
0,
],
];