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:
committed by
Ulrich Drepper
parent
5f69cd2f94
commit
7f5517aa52
@@ -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);
|
||||
|
Reference in New Issue
Block a user