NetBSD-Bugs archive

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

Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb



The following reply was made to PR port-mips/57680; it has been noted by GNATS.

From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-mips-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-mips/57680: printf("%.1f") shows wrong resultsonR3000mipseb
Date: Sat, 4 Nov 2023 16:07:00 +0000

 > Date: Sat,  4 Nov 2023 10:20:01 +0000 (UTC)
 > From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
 >  
 > I doubt this problem was really compiler issue and
 > I wonder if it's okay to assume "FE_TONEAREST" is default
 > because FE_TOZERO works.
 
 FE_TONEAREST is the correct default.  This has been the standard in
 IEEE 754 since 1985; essentially all hardware since then will
 implement it as the default, and essentially all numerical software
 that relies on any rounding mode will rely on that as the default.
 
 If the code doesn't work with FE_TONEAREST then there's something
 wrong with the code, not with the choice of default rounding mode.
 


Home | Main Index | Thread Index | Old Index