Incari Studio
2.0
2.0
  • Incari Studio Documentation
  • Getting Started
    • Requirements
    • Installation
  • Interface
    • Logic Editor
    • Project Outliner
    • Global Preferences
    • Attribute Editor
    • Material Editor
  • Objects
    • Project Objects
      • Scene
      • Screen
    • Scene Objects
      • Camera
      • Group
      • Lights
      • List
      • Mesh
      • Sprites
        • Sprite
        • Text
  • Toolbox
    • Array
      • Array Value
      • Clear Array
      • Concat Arrays
      • Get Array Element
      • Length of Array
      • Pop Array Element
      • Push Array Element
      • Set Array Element
    • DateTime
      • Date Time Formatter
      • Now (UTC)
      • System Time
      • Timezone Value
    • Events
      • Keyboard
        • On Key Press
        • On Key Release
    • Flow Control
      • Branch
      • Is Equal
      • Is Greater Equal
      • Is Less Equal
      • Select Data
      • Sequential
      • Switch
      • Toggle
    • Math
      • Add
      • Boolean
        • AND
        • Negate
        • OR
      • Ceil
      • Clamp
      • Divide
      • Floor
      • Maximum
      • Minimum
      • Modulo
      • Multiply
      • Power
      • Range Mapper
      • Root
      • Subtract
    • Incari
      • List
        • Generate List
        • Next List Entry
        • Previous List Entry
        • Select List Entry
        • Set Active
        • Set Current Index
      • Object
        • Get Alpha
        • Set Alpha
        • Get Scale
        • Set Scale
        • Get Rotation
        • Set Rotation
        • Get Position
        • Set Position
        • Get Visibility
        • Set Visibility
        • Set Tint
        • Get Tint
        • Get Material
        • Set Material
        • Set Text
    • Utilities
      • Group
Powered by GitBook
On this page
  • Overview
  • Attributes
  • Inputs
  • Outputs
  • External Links

Was this helpful?

  1. Toolbox
  2. Math

Modulo

PreviousMinimumNextMultiply

Last updated 3 years ago

Was this helpful?

Overview

Modulo is a modular arithmetic Node, which divides one number (dividend) by a second number (divisor) and outputs the remainder of the Euclidean division operation.

This is the equivalent of the modulo (%) operation in computer science.

Dividend

Divisor

Quotient

Remainder

10

25

2

5

5.5

1.5

3

1

540

360

1

180

15

12

1

3

Attributes

Attribute
Type
Description

Data Type

Drop-down

The type of data that will be plugged into the Input Sockets.

Default Dividend

Defined in the Data Type Attribute.

The left side of the Euclidean division operation (the number to be divided) if no value is provided in the Dividend Socket.

Default Divisor

Defined in the Data Type Attribute.

The right side of the Euclidean division operation (the number to divide by) if no value is provided in the Divisor Socket.

Inputs

Input
Type
Description

Pulse Input (►)

Pulse

A standard input Pulse, to trigger the execution of the Node.

Dividend

Defined in the Data Type Attribute.

The left side of the Euclidean division operation (the number to be divided).

Divisor

Defined in the Data Type Attribute.

The right side of the Euclidean division operation (the number to divide by).

Outputs

Output
Type
Description

Pulse Output (►)

Pulse

A standard output Pulse, to move onto the next Node along the logic branch, once this Node has finished its execution.

Remainder

Defined in the Data Type Attribute.

The remainder of the Euclidean division operation.

External Links

on Kahn Academy.

on Kahn Academy.

Intro to remainders
What is modular arithmetic?