From: jtc@redback.com (J.T. Conklin)
To: gdb-patches@cygnus.com
Cc: phdm@macqel.be, gdb@cygnus.com
Subject: Re: testsuite/print_long_arg_list
Date: Thu, 08 Apr 1999 15:28:00 -0000 [thread overview]
Message-ID: <5mg16aycjf.fsf@jtc.redbacknetworks.com> (raw)
In-Reply-To: <199904082043.NAA29533@andros.cygnus.com>
>>>>> "Stan" == Stan Shebs <shebs@cygnus.com> writes:
Stan> I'm no floating-point expert, but I do know that you're supposed
Stan> to be careful about ignoring the last digit. On the other hand,
Stan> GDB just uses a printf %g to display float values, so the output
Stan> is going to depend on the system's C library as much as GDB's
Stan> correctness. In fact, "a" is actually 22.22 in the sources, so
Stan> even the expected test result isn't what it should be.
Stan> My inclination is to relax the match here. What does everybody
Stan> else think?
Isn't the problem that 22.22 cannot be represented exactly in binary
floating point, thus is subject to various rounding issues in the
least significant digits? Perhaps using values like 22.5, 22.25,
22.125, etc. would eliminate these problems.
--jtc
--
J.T. Conklin
RedBack Networks
next prev parent reply other threads:[~1999-04-08 15:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-07 9:49 testsuite/print_long_arg_list Philippe De Muyter
1999-04-08 13:43 ` testsuite/print_long_arg_list Stan Shebs
1999-04-08 15:28 ` J.T. Conklin [this message]
1999-04-08 16:01 ` testsuite/print_long_arg_list Stan Shebs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5mg16aycjf.fsf@jtc.redbacknetworks.com \
--to=jtc@redback.com \
--cc=gdb-patches@cygnus.com \
--cc=gdb@cygnus.com \
--cc=phdm@macqel.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox