Difference: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
<!--T:3-->
<section begin="image"/>[[File:difference.png|alt=The Difference Block|thumb]]<section end="image"/>
==Usage== <!--T:4-->


<!--T:2-->
<!--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

Other languages:
The Difference Block

Usage

Returns the difference of two inputs.

Syntax

Inputs in this block:

  1. a number
  2. a number

the latter of which will be subtracted from the former.

Example

Difference example gif
Difference example code

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