G
Guest
in C/C++ I can use printf("%0.2X",t) to add mack the output wit to parameter,
for example if t = 0xA after printf I will get 0x0A.
How can I do that in C#.
I want to print a hexa number but to be 4 carecters 0x000A insted of 0xA.
and also I want to print a bin number but to be 8 carecters 00001010 insted of 0xA = (0xA).ToString("B") ???????.
for example if t = 0xA after printf I will get 0x0A.
How can I do that in C#.
I want to print a hexa number but to be 4 carecters 0x000A insted of 0xA.
and also I want to print a bin number but to be 8 carecters 00001010 insted of 0xA = (0xA).ToString("B") ???????.