I have to encode 3 numbers into the same integer.
I have these 3 measurements
uint256 carLength;
uint256 carWidth;
uint256 carDepth;
and i want to encode these 3 numbers into the same integer with the possibility to decode. My problem is that I'm not very experienced at this low level.
i think about functions like this
function encodeNumbers(uint256 a, uint256 b, uint256 c) public view returns(uint256);
function decodeNumber(uint256) public view returns (uint256, uint256, uint256);
advice on how to proceed?