[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#65684: glibc-doc says trunc == floor



Package: glibc-doc
Version: 2.1.3-10

In libc.info, node Rounding Functions:

--clip--

 - Function: double trunc (double X)
 - Function: float truncf (float X)
 - Function: long double truncl (long double X)
     `trunc' is another name for
`floor'                                        

--clip--

While `trunc' is obviously not another name for `floor':

trunc(-1.5) == -1.0
floor(-1.5) == -2.0

I'm using Debian Potato.

-- 
Santtu Hyrkkö
Software Engineer, R&D, Ztango.com
E-mail: Santtu.Hyrkko@Ztango.com
Tel.: +358 50 384 8451



Reply to: