![]() -> Click here to learn how to get live help <- |
TRUNCIndexNAMEtrunc, truncf, truncl - round to interger, towards zeroSYNOPSIS#include <math.h> double trunc(double x); DESCRIPTIONThese functions round fIxfP to the nearest integer not larger in absolute value.RETURN VALUEThe rounded integer value. If fIxfP is integral, infinite or NaN, fIxfP itself is returned.ERRORSNone.CONFORMING TOC99.SEE ALSOceil(3), floor(3), lrint(3), nearbyint(3), rint(3), round(3)
Index |