Chapter Contents |
Previous |
Next |
llrint |
Portability: | C99 |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
IMPLEMENTATION | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <math.h> long long llrint(double x); long long llrintf(float x); long long llrintl(long double x);
DESCRIPTION |
llrint
converts its argument
to an integral value using the current rounding mode and returns it as a long long
integer.
The function name llrintf
should
be used
for float
arguments, and llrintl
for long double
arguments.
Alternately, if the header file tgmath.h
is
included, llrint
may be used with any numeric
argument type.
RETURN VALUE |
llrint
returns its argument
converted to a long long
integer. If the result
is outside the range of long long
integer,
the return value is unpredictable.
IMPLEMENTATION |
llrint
is implemented as
a built-in function unless it is undefined by a #undef
statement.
RELATED FUNCTIONS |
ceil
, floor
, llround
,
lrint
, lround
, nearbyint
, rint
, round
,
trunc
SEE ALSO |
"Mathematical Functions" in Chapter 2, "Function Categories"
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.