% (modulo) \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### % (modulo)
Examples |
    int a = 20%100;   // Sets a to 20
    int b = 20%100;   // Sets b to 20
    int c = 75%100;   // Sets c to 75
    int d = 275%100;  // Sets d to 75
Description | Calculates the remainer when one number is divided by another. It is extremely useful for keeping numbers within a boundary such as keeping a shape on the screen.
Syntax |
    value1%value2
Parameters |
value1 | int
value2 | int
Usage | Application
Related | / (divide)

Updated on November 01, 2009 12:45:54pm PST