Difference/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>
<section begin="image"/>[[File:difference.png|alt=The Difference Block|thumb]]<section end="image"/>
==Usage==


<p id="tooltip">Returns the difference of two inputs.</p>
<p id="tooltip">Returns the difference of two inputs.</p>
==Syntax==
Inputs in this block:
#a number
#a number
the latter of which will be subtracted from the former.
==Example==
[[File:difference_example.gif|alt=Difference example gif|thumb]]
[[File:difference_example.png|alt=Difference example code|thumb]]
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==
*[[Special:MyLanguage/Sum|Sum +]]
*[[Special:MyLanguage/Product|Product *]]
*[[Special:MyLanguage/Quotient|Quotient /]]


[[Category:Math]]
[[Category:Math]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 18:47, 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