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

62 lines
731 B
PHP

<?php
return [
[
'1357',
'#NUM!',
],
[
'246',
'10100110',
],
[
'3',
3,
'011',
],
[
'12345',
'#NUM!',
],
[
'123.45',
'#NUM!',
],
[
'0',
'0',
],
[
true,
'#VALUE!',
],
[
'3579',
'#NUM!',
],
// 2's Complement
[
'7777777000',
'1000000000',
],
// 2's Complement
[
'7777777777',
'1111111111',
],
// Too small
[
'17777777777',
'#NUM!',
],
[
'777',
'111111111',
],
// Too large
[
'1777',
'#NUM!',
],
];