Dr. James McCaffrey of Microsoft Research uses a full code program and screenshots to explain how to programmatically encode categorical data for use with a machine learning prediction model such as a ...
What are the numbers? You can encode 9,999,999,999 in 5 bytes. If you want to store the number in human readable bytes, convert it to Base64 encoding or similar.