From: Stefan Ratschan <stefan.ratschan@mpi-sb.mpg.de>
To: caml-list@inria.fr
Subject: [Caml-list] floating point input/conversion
Date: Fri, 22 Oct 2004 11:25:40 +0200 [thread overview]
Message-ID: <1098437140.3079.21.camel@localhost> (raw)
For the functions float_of_string and read_float the OCaml manual is
very vague: "Convert the given string to a float".
In fact, this sentence is wrong. For example, the number 0.1 does not
have a floating point representation, only approximations to it.
So what is the exact specification of these functions? Which number is
taken if the given string does not have a floating point representation?
The nearest one? The nearest one up to 2ulps? Is the current rounding
mode taken into account?
Stefan Ratschan
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2004-10-22 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-22 9:25 Stefan Ratschan [this message]
2004-10-22 10:12 ` Olivier Andrieu
2004-10-23 20:47 ` Christophe Raffalli
2004-10-23 21:00 ` Pierre Weis
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=1098437140.3079.21.camel@localhost \
--to=stefan.ratschan@mpi-sb.mpg.de \
--cc=caml-list@inria.fr \
/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