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

68 lines
792 B
PHP

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