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

72 lines
839 B
PHP
Raw Normal View History

<?php
return [
[
'FF',
'11111111',
],
[
'1FF',
'111111111',
],
[
'200',
'#NUM!',
],
// 2's Complement
[
'FFFFFFFE00',
'1000000000',
],
// 2's Complement
[
'FFFFFFFDFF',
'#NUM!',
],
[
'01AB',
'110101011',
],
[
'ABCD',
'#NUM!',
],
[
'F6',
'11110110',
],
[
'F',
8,
'00001111',
],
[
'B7',
'10110111',
],
[
'12345',
'#NUM!',
],
[
'123456789',
'#NUM!',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
'G3579A',
'#NUM!',
],
[
true,
'#VALUE!',
],
];