1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-01 05:02:03 +03:00

Fix lround() loses precision

This commit is contained in:
Paul Pluzhnikov
2011-09-08 23:37:32 -04:00
committed by Ulrich Drepper
parent 5f69cd2f94
commit 7f5517aa52
3 changed files with 8 additions and 1 deletions

View File

@@ -4386,6 +4386,7 @@ lround_test (void)
TEST_f_l (lround, 1073741824.01, 1073741824);
# if LONG_MAX > 281474976710656
TEST_f_l (lround, 281474976710656.025, 281474976710656);
TEST_f_l (llround, -3.65309740835E17, -365309740835000000);
# endif
TEST_f_l (lround, 2097152.5, 2097153);
TEST_f_l (lround, -2097152.5, -2097153);