PhpSpreadsheet/unitTests/rawTestData/Calculation/Engineering/HEX2DEC.data
Adrien Crivelli 8fc29bd1b1
Fix unit tests for all base conversion functions
This include cases were artificial constraints were not checked
(eg: between -512 and 511 for `DECBIN`) and some bugs were 32
bits platform were assumed.

The following are covered:

`BIN2DEC`, `BIN2HEX`, `BIN2OCT`,
`DEC2BIN`, `DEC2HEX`, `DEC2OCT`,
`HEX2BIN`, `HEX2DEC`, `HEX2OCT`,
`OCT2BIN`, `OCT2DEC`, `OCT2HEX`
2016-08-01 02:48:51 +09:00

16 lines
340 B
Plaintext

"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"
"FFFFFFFF5B", "-165" // 2's Complement
"FFFFFFFFFF", "-1" // 2's Complement
"1FFFFFFFFFF", "#NUM!" // Too large