PhpSpreadsheet/tests/data/Calculation/MathTrig/TRUNC.php

100 lines
1.3 KiB
PHP
Raw Normal View History

<?php
return [
[
3.1400000000000001,
3.1415899999999999,
2,
],
[
3.141,
3.1415899999999999,
3,
],
[
-3.1400000000000001,
-3.1415899999999999,
2,
],
[
-3.141,
-3.1415899999999999,
3,
],
[
31415.92654,
31415.92654,
10,
],
[
-31415.92654,
-31415.92654,
10,
],
[
31415.919999999998,
31415.92654,
2,
],
[
31400,
31415.92654,
-2,
],
[
0,
31415.92654,
-10,
],
[
0,
-31415.92654,
-10,
],
[
12000,
12345.678900000001,
-3,
],
[
12300,
12345.678900000001,
-2,
],
[
12340,
12345.678900000001,
-1,
],
[
12345,
12345.678900000001,
0,
],
[
12345.6,
12345.678900000001,
1,
],
[
12345.67,
12345.678900000001,
2,
],
[
12345.678,
12345.678900000001,
3,
],
[
'#VALUE!',
'ABC',
2,
],
[
'#VALUE!',
31415.92654,
'ABC',
],
];