This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: rint -lm function broke


Robert Thomas <thoma041@info.census.gov> writes:

> OH, big apology to Alexandre Oliva.  The Linux man page is a lot different
> than the sun page on this (I didn't look at sun's man page).  Linux says
> that it should round to the nearest integer (dated June 6, 1993). 

As you have just learnt, the Linux manual pages are not the most
reliable source of documentation on the GNU C library.  Instead you
should use the Info documentation by typing 'info libc'.

> I think that the ISO really should re think this.  When dealing with
> populations in the millions, .5 rounded is either up or down
> depending on the major part represents a big diff.  Take a place
> that has 10.5 million people and another that has 11.5 -> 10 and 12
> respectively?  Sounds broke.

Their total is still 22 million.  At least you didn't mysteriously
gain 1 million people...
-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]