cosmopolitan/libc/math/lround.c

9 lines
102 B
C

#include "libc/math/math.h"
long lround(double x) {
long y;
x = round(x);
y = x;
return y;
}