mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-26 17:38:34 +00:00
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
|
|
|
|
return [
|
|
['144', 1100100],
|
|
['262', '10110010'],
|
|
[ExcelError::NAN(), '111001010101'], // Too large
|
|
['011', '1001', 3], // Leading places
|
|
['0011', '1001', 4.75], // Leading places as a float
|
|
[ExcelError::NAN(), '1001', -1], // Leading places negative
|
|
[ExcelError::VALUE(), '1001', 'ABC'], // Leading places non-numeric
|
|
['2', '00000010'],
|
|
['5', '00000101'],
|
|
['15', '00001101'],
|
|
['0', '0'],
|
|
[ExcelError::NAN(), '21'], // Invalid binary number
|
|
[ExcelError::VALUE(), true], // Boolean okay for ODS, not for others
|
|
[ExcelError::VALUE(), false], // Boolean okay for ODS, not for others
|
|
['7777777625', '1110010101'], // 2's Complement
|
|
['7777777777', '1111111111'], // 2's Complement
|
|
['7777777000', '1000000000'], // lowest negative
|
|
['777', '111111111'], // highest positive
|
|
['0', '0000000000'],
|
|
['1', '000000001'],
|
|
['400', '0100000000'],
|
|
['400', '100000000'],
|
|
['7777777400', '1100000000'],
|
|
['0003', '11', 4],
|
|
[ExcelError::NAN(), '11', 0],
|
|
[ExcelError::NAN(), '11', -1],
|
|
[ExcelError::NAN(), '11', 14],
|
|
[ExcelError::NAN(), '10001', 1],
|
|
['21', '10001', 2],
|
|
['021', '10001', 3],
|
|
];
|