Opening the book…
The Sum block can also subtract. This may feel a little surprising at first because the block is called Sum, but the block can be configured to add or subtract each input.
Double-click the Sum block. In the List of signs field, change the signs from:
++
to:
+-

Now the first input is added and the second input is subtracted. If the two Constant blocks contain 5 and 3, the output becomes:
5 - 3 = 2

You can also create a Sum block with more than two inputs. For example, a List of signs such as +++ creates three input ports that are all added. A List of signs such as ++- creates three input ports where the first two are added and the third is subtracted.
This page titled 11.6: Subtracting Two Numbers was last modified on Tue, 30 Jun 2026 02:11:49 GMT and is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Zara Noroozi.
The book could not be loaded just now.