Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If 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 |
|
||
| Returns | double | ||
| Usage | Application |

