Chapter Contents |
Previous |
Next |
llround |
Portability: | C99 |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
IMPLEMENTATION | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <math.h> long long llround(double x); long long llroundf(float x); long long llroundl(long double x);
DESCRIPTION |
llround
rounds its argument
to the nearest integral value and returns it as a long long
integer. If two results are equally near, lround
rounds away from
zero.
The function name llroundf
should be
used for float
arguments, and llroundl
for long double
arguments.
Alternately, if the header file tgmath.h
is
included, llround
may be used with any numeric
argument type.
RETURN VALUE |
llround
returns its argument
rounded to the nearest integer.
IMPLEMENTATION |
llround
is implemented
as a built-in function unless it is undefined by a #undef
statement.
RELATED FUNCTIONS |
ceil
, floor
, llrint
,
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.