Decompose the result of a calculation ?
Hi, guys. I need to make a calculation between 2 numbers and the result obtained I would like to decompose it into parts, example: 35 x 12 = 420
The idea is to be able to decompose this number into 3 values: 4, 2 and 0 and then assign it to a variable. Is this possible? I've tried the signal splitter and it doesn't do it correctly.
Thank you very much!
-
Yes totally possible. Here an element does exactly that:
https://indreams.me/element/oQJxWXWNNKF -
Oh yes!!! Thanks Denjo92!
-
A splitter is specifically for splitting out "fat wires"--wires that carry more than one number at once.
You can do math just as you would in real life, or in other programming languages. I see Denjo has a chip that uses math to get each digit for you ;D
Please sign in to leave a comment.