PhpSpreadsheet/tests/data/Calculation/Engineering/HEX2DEC.php

68 lines
792 B
PHP

<?php
return [
[
'427',
'01AB',
],
[
'43981',
'ABCD',
],
[
'246',
'F6',
],
[
'74565',
'12345',
],
[
'4886718345',
'123456789',
],
[
'#NUM!',
'123.45',
],
[
'0',
'0',
],
[
'#NUM!',
'G3579A',
],
[
'#VALUE!',
true,
],
[
'#NUM!',
'-107',
],
[
'165',
'A5',
],
[
'1034160313',
'3DA408B9',
],
// 2's Complement
[
'-165',
'FFFFFFFF5B',
],
// 2's Complement
[
'-1',
'FFFFFFFFFF',
],
// Too large
[
'#NUM!',
'1FFFFFFFFFF',
],
];