From: guign@mails.selgrad.org
To: guile-user@gnu.org
Subject: Re: strange behaviour of (floor .)
Date: Mon, 28 Dec 2009 22:25:38 +0100 [thread overview]
Message-ID: <20091228212538.GA30883@shoikan.fritz.box> (raw)
In-Reply-To: <4B390A2B.1020501@bioch.ox.ac.uk>
Hej...
> > The actual result shoud be 34.
> That's one of the answers you will get if you use a computer to
> calculate the results.
... what every computer scientist should know about floating point
numbers... ;)
seems like I didn't think about it, sorry :)
the number in my example is in fact not exactly represented, the
approximation is 12.33999999999999985789, and so, well... :)
thanks :)
next prev parent reply other threads:[~2009-12-28 21:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-28 17:02 strange behaviour of (floor .) guign
2009-12-28 19:42 ` Paul Emsley
2009-12-28 21:25 ` guign [this message]
2010-01-03 16:17 ` Thien-Thi Nguyen
2010-01-03 17:43 ` guign
2010-01-03 20:51 ` Keith Wright
2010-01-03 20:16 ` Linas Vepstas
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091228212538.GA30883@shoikan.fritz.box \
--to=guign@mails.selgrad.org \
--cc=guile-user@gnu.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).