跳至主內容

搜尋

How do I add multiple numbers?

  • dr_murk

    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!

  • GBO-Possum

    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.

  • Mr_Prince_Sanji3

    '@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 :)

登入寫評論。