How do I add multiple numbers?
Can you use the calculator gadget to add more than 2 numbers together? For example, I want to add up to 10 different numbers together, without using a ton of separate calculator gadgets.
-
Something that would SEEM to work, but I haven't tested it yet:
Place down an OR gate (may work with just a node? not sure yet)
Write up all of your inputs into the first port and set the blend type of the port to the one that averages it.
Multiply the output by the number of wires you put into it.
The mathematically result is ((a+b+c+d....+x) / n) * n where n is the number of wires you use as input. The equation simplifies to just the sum.
It's a little less obvious at first glance, but is only two gadgets! -
Mr Prince, I’ve sent you a Microchip which does the job. It has 10 inputs on its left, and one output on the right. Of course it’s a mess of Calculator gadgets inside, but it’s tidy on the outside.
-
'@GBO-Possum Thanks! I was trying to avoid using a ton of calculators because I thought it would be messy, but your microchip was super organized! Worked perfectly too :)
I'm making a dice calculator, so I'll share that with you when I'm done!
@dr_murk Thanks for the tips! I'll have to give that a shot to see if it'll work too! Ended up using lots of calculators, but might switch if I need to optimize the code :)
댓글을 남기려면 로그인하세요.