Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
There is a way to do it but it's complicated, I will try to point you in the right direction.
You need to convert each number to binary, combine then convert back to a single number that you store.
To retrieve the individual numbers you convert the stored number to binary, split then convert back to individual numbers.
This type of logic is called Decimal to Binary / Binary to Decimal conversion, you should be able to find examples in Dreams.
A variable in Dreams is 24 bits, you have 4 numbers so each can be a maximum of 6 bits or 63 & must be a whole number.
Microchip 1
Each number to a 6 bit Decimal to binary converter, this gives you 24 bits / outputs, they go to a 24 bit Binary to decimal converter that outputs the number you store.
Microchip 2
Stored number to 24 bit Decimal to binary converter, this gives you 24 bits / outputs, wire each set of 6 bits to a 6 bit Binary to decimal converter, each outputs 1 of the numbers.
If you find examples in Dreams for 24 bit Decimal to Binary / Binary to Decimal, you can modify them to create a 6 bit version.