Created attachment 115689 [details] Spreadsheet showing the bug The decimal value returned by the Calc BIN2DEC() function is wrong when the binay argument excceeds a certain sixe, for examole: BIN2DEC(100001001) -> 265 (right) NIN2DEC(1100001001) -> -247 (Wrong) There is no reseason to render correctly a 9 bit number as its positive decimal value, and to render a ten bit numender as a negative integer.
It's not a bug since, according to https://help.libreoffice.org/Calc/Add-in_Functions,_List_of_Analysis_Functions_Part_One#BIN2DEC, if the number of bits is 10, the left bit is considered as the sign bit.