This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43405] sinl is not computed correctly
- From: "eli dot osherovich at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2010 13:29:43 -0000
- Subject: [Bug c/43405] sinl is not computed correctly
- References: <bug-43405-18929@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from eli dot osherovich at gmail dot com 2010-03-19 13:29 -------
(In reply to comment #7)
> Subject: Re: sinl is not computed correctly
>
> On Thu, 18 Mar 2010, bangerth at gmail dot com wrote:
>
> > Also: 1e22 is not exactly representable as a floating point number. By
>
> 5**22 is smaller than 2**53, so 1e22 (= 5**22 * 2**22) *is* exactly
> representable in double or formats with more bits than double.
>
1e22 is not representable exactly in the binary format. Not because of its
magnitude, just because most numbers cannot be represented exactly in
computers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43405