I came across the requirement in a project for converting a integer value to a 24 bit value, split into 3 bytes which is answered in this question: How to represent a 5 digi