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

62 lines
731 B
PHP

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