Skip to main content

Timeline for Convert byte array into any base

Current License: CC BY-SA 2.5

5 events
when toggle format what by license comment
Dec 14, 2018 at 11:36 comment added tigrou Great code. Negative BigInteger case can be avoided by adding a null byte at the end to the byte array. For bases bigger than 256 it can result in a smaller string than a minus sign prefix. BigIntegers are negative if their last byte has 0x80 flag set.
Jul 16, 2010 at 16:13 comment added Paya +1 for code, but apoorv020 first came with BigInteger solution.
Jul 16, 2010 at 14:38 history edited Tergiver CC BY-SA 2.5
added 30 characters in body
Jul 16, 2010 at 14:25 history edited Tergiver CC BY-SA 2.5
added 1 characters in body
Jul 16, 2010 at 14:20 history answered Tergiver CC BY-SA 2.5