Remainder Of

From StarLogo Nova Wiki
Other languages:
The Remainder Of Block

Usage

Returns the remainder of the first input divided by the second input.

Syntax

Inputs in this block:

  1. a number
  2. a number

the first will be divided by the second

Example

Remainder Of example gif
Remainder Of example code

The model above is of precipitation throughout the four seasons. The World trait temperature changes depending on the season and affects the precipitation that is created by the cloud. The seasons are dependent on the remainder of the clock divided by 160, and naturally cycle through before repeating.

Related Blocks