abs() \ 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 0023+. 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 | ### abs()
Examples |
    int a = abs(153);      // Sets a to 153
    int b = abs(-15);      // Sets b to 15
    float c = abs(12.234); // Sets c to 12.234
    float d = abs(-9.23);  // Sets d to 9.23
Description | Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive.
Syntax |
    abs(value)
Parameters |
value | float or int
Returns | float or int (depending on the input values)
Usage | Application

Updated on October 30, 2009 04:19:16pm PDT