Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 1998 23:15:18 -0400 (EDT)
From:      John Baldwin <jobaldwi@vt.edu>
To:        freebsd-chat@FreeBSD.ORG
Subject:   Bug in rintf()?...
Message-ID:  <XFMail.981020231518.jobaldwi@vt.edu>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

I've been having a problem with rintf() not rounding properly, and I don't
understand the code in /usr/src/libm/common_source/floor.c well enough to
figure out where it is going wrong.  Here is the problem I'm having though:

 rintf(3.5) returns 4.0
 rintf(3910.5) returns 3910.0  (should return 3911.0)

I'm running 2.2.7-Stable, btw.  Any help is appreciated.

- ---

John Baldwin <jobaldwi@vt.edu> -- http://members.freedomnet.com/~jbaldwin/
PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc

Always forgive your enemies--nothing annoys them so


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBNi1Rv4jYza302vYpAQEZzAL/Q8PI1lruSRFBbt9NTago+2XCl/uYBiFt
G3A7tkKyG0w9hdSlMIUSs4fQlj8aqc72e1Phq9lzufhGvKdzisGX8+KAToyPeYef
D5eaUl/tsbo6QqYyMPfKZxhbLtsN/muf
=Gnr1
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.981020231518.jobaldwi>