I understand that, for some hex string like 0xF0B0D0, the reverse byte order is 0xD0B0F0 since two hexademical digits represent one byte.

Can the same thing be achieved as easily if we have a decimal number? Because a decimal digit doesn't represent a whole number of bits. Woulnd't we have to first convert it to binary, reverse it, then re-convert it to decimals?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.