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

32 lines
794 B
PHP

<?php
return [
['#NUM!', '1357'],
['10100110', '246'],
['011', '3, 3'],
['#NUM!', '12345'],
['#NUM!', '123.45'],
['0', '0'],
['#VALUE!', 'true'],
['#VALUE!', 'false'],
['#NUM!', '3579'],
['1000000000', '7777777000'], // 2's Complement
['1111111111', '7777777777'], // 2's Complement
['#NUM!', '17777777777'], // Too small
['#NUM!', '1777'], // Too large
['111111111', '777'], // highest positive
['#NUM!', '1000'],
['1000000000', '"7777777000"'], // lowest negative
['#NUM!', '"7777776777"'],
['01010', '12, 5'],
['#NUM!', '12, 0'],
['#NUM!', '12, -1'],
['#NUM!', '12, 14'],
['#NUM!', '12, 3'],
['1010', '12, 4'],
['1000001', 'A2'],
['#NUM!', '"A2"'],
[0, 'A3'],
['exception', ''],
];