https://bugs.freedesktop.org/show_bug.cgi?id=45951
--- Comment #9 from Valerio Messina <[email protected]> --- understood what you mean now, I found the HEX2BIN limits with 10 hex digits (40 bit), when the output would fit in 10 binary digits. For example converting: "0000000001" (10 digits) result 1, but converting "00000000001" (11 digits) results Err:502. So apparently there are two strange limitations: 10 digits in the source number, and 10 digits in the resulting number. While DEC2BIN accept up to 10 as second argument and manage negative numbers in results expressed on 10 digits (DEC2BIN(-1)=1111111111, HEX2BIN accept up to 10 as second argument, but you are right, the result must be in range 0/+511 (9 bits), so no two's complement, only positive numbers, with a 0 as MSb. For example HEX2BIN(0x200) should result 1000000000 that has 10 bits, so the result as now is Err:502 I report those behaviors in bug 45950 -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
