Skip to main content

Quotient

Returns the quotient of two inputs.

Quotient block

Description

The Quotient block returns the quotient of two inputs. This is a code block from the Math drawer.

Usage

Returns the quotient of two inputs.

Syntax

Inputs in this block:

  • A number
  • A number

The first value will be divided by the second.

Example

This is a model of an epidemic. To monitor the spread of the epidemic, data boxes and a line graph have been employed to monitor immune, uninfected, and infected populations. An epidemic occurs when the infected population exceeds the expected infected population. When over 5% of the population is infected, the warning label is shown.

Quotient example code