December 2005
Beginner to intermediate
618 pages
20h 19m
English
llrint
Rounds a floating-point number to a long long integer
#include <math.h> long longllrint( doublex); long longllrintf( floatx); long longllrintl( long doublex);
The llrint() functions
round a floating-point number to the next integer value in the
current rounding direction. If the result is outside the range of
long long, a range error may
occur (this is implementation-dependent), and the return value is
unspecified.
See the example for the analogous function lrint().
rint(), lrint(), round(), lround(), llround(), nearbyint(), fegetround(), fesetround()
Read now
Unlock full access