trunc() \ 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 | ### trunc()
Examples |
    double c = trunc(-3.5);  // Sets c to -3
    double d = trunc(2.7172);  // Sets d to 2
Description | The trunc() function rounds x to the nearest integer not larger in absolute value.
Syntax |
    trunc(x)
Parameters |
x | double, float or int
Returns | double
Usage | Application

Updated on January 11, 2010 09:58:50pm PST