Difference: Difference between revisions
(add tooltip text) |
(Marked this version for translation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:difference.png|alt=The Difference Block|thumb]]<section end="image"/> | |||
==Usage== <!--T:4--> | |||
<!--T:2--> | |||
<p id="tooltip">Returns the difference of two inputs.</p> | <p id="tooltip">Returns the difference of two inputs.</p> | ||
==Syntax== <!--T:5--> | |||
<!--T:6--> | |||
Inputs in this block: | |||
#a number | |||
#a number | |||
the latter of which will be subtracted from the former. | |||
==Example== <!--T:7--> | |||
<!--T:8--> | |||
[[File:difference_example.gif|alt=Difference example gif|thumb]] | |||
[[File:difference_example.png|alt=Difference example code|thumb]] | |||
<!--T:9--> | |||
This is a model of elephant health given factors that nourish the elephant (grass) and factors that harm the elephant (poachers). When an elephant’s health falls to zero, it is no longer visible. This demonstrates the negative impact of poachers on elephant populations. | |||
==Related Blocks== <!--T:10--> | |||
<!--T:11--> | |||
*[[Special:MyLanguage/Sum|Sum +]] | |||
*[[Special:MyLanguage/Product|Product *]] | |||
*[[Special:MyLanguage/Quotient|Quotient /]] | |||
<!--T:1--> | <!--T:1--> |
Latest revision as of 15:55, 14 August 2023
Usage
Returns the difference of two inputs.
Syntax
Inputs in this block:
- a number
- a number
the latter of which will be subtracted from the former.
Example
This is a model of elephant health given factors that nourish the elephant (grass) and factors that harm the elephant (poachers). When an elephant’s health falls to zero, it is no longer visible. This demonstrates the negative impact of poachers on elephant populations.