This is a bit unclear.
Of course, a function such as
void print_1024bit(uint64_t digits[]);
could be written to do this. But if you mean if any of the standard library's printf()
-family of functions can do this, then I think the answer is no.
As you probably saw in the other question, the core of converting a binary number into a different base b is made of two operations:
- Modulo b, to figure out the current least significant digit
- Division by b, to remove that digit once it's been generated
When applied until the number is 0, this generates all the digits in reverse order.
So, you need to implement "modulo 10" and "divide by 10" for your 1024-bit number.
For instance, consider the number decimal 4711, which we want to convert to octal just for this example:
- 4711 % 8 is 7, so the right-most digit is 7
- 4711 / 8 is 588
- 588 % 8 is 4, the next digit is 4
- 588 / 8 is 73
- 73 % 8 is 1
- 73 / 8 is 9
- 9 % 8 is 1
- 8 / 8 is 1
- 1 % 8 is 1
- 1 / 8 is 0, we're done.
So, reading the bold digits from the bottom and up towards the right-most digits, we conclude that 471110 = 111478. You can use a calculator to verify this, or just trust me. :)