long int lround (double x);long int lroundf (float x);long int lroundl (long double x);
long int lround (double x);long int lround (float x);long int lround (long double x);long int lround (T x); // additional overloads for integral types
long int
。有关返回 long long int
的等效函数,请参阅 llround。long int
类型的 x 的值。
|
|
Rounding using to-nearest rounding: lround (2.3) = 2 lround (3.8) = 4 lround (-2.3) = -2 lround (-3.8) = -4 |