We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088ede2 commit 32a6bbdCopy full SHA for 32a6bbd
src/libc/modfl.c
@@ -16,7 +16,7 @@ long double modfl(long double x, long double *integral_part) {
16
case FP_NORMAL:
17
}
18
long double trunc_x = truncl(x);
19
- *integral_part = x;
+ *integral_part = trunc_x;
20
// result will be exact, and should not raise exceptions
21
return x - trunc_x;
22
0 commit comments