NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
long trunc ( float  x)
inline

Compute integral part.

Computes the integral part of x.

Parameters
xFloating point value.
Returns
Integral part of x.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_sin_cos.nxc, ex_sind_cosd.nxc, and ex_trunc.nxc.